"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 03/30/2016
12:11:04 PM:
"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 03/30/2016
12:06:42 PM:
I'm getting a syntax error at the left paren in ") as N" but I
don't see why this should be an error. Any idea?
I spoke too soon. I figured out what was missing. Testing now.
Thanks.
OK, the following appears to be working as desired. Thanks.
Merge Into Turnover_Waiting_List as O
Using (Select Item_Name, Item_Type
, Item_Attribute, Wait_Sequence
, Row_Number() Over(Order by Item_Name
, Item_Type
, Item_Attribute
, Wait_Sequence)
* 10 as New_Sequence
From Turnover_Waiting_List
Where Item_Name = 'TOWAITBRSM'
And Item_Type = '*MODULE'
And Item_Attribute = 'SQLRPM'
) as N
On N.Item_Name = O.Item_Name
And N.Item_Type = O.Item_Type
And N.Item_Attribute = O.Item_Attribute
And N.Wait_Sequence = O.Wait_Sequence
When Matched Then
Update Set O.Wait_Sequence = N.New_Sequence
, O.Changed_By_User = DEFAULT
, O.Changed_By_Program = 'iNav';
Sincerely,
Dave Clark
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300
Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331
*********************************************************************************************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary
information. If you have received this message in error, please
immediately notify the sender and delete and destroy the message and all
copies. All unauthorized direct or indirect use or disclosure of this
message is strictly prohibited. No right to confidentiality or privilege
is waived or lost by any error in transmission.
*********************************************************************************************
As an Amazon Associate we earn from qualifying purchases.