all groups > sql server new users > october 2006 >
You're in the

sql server new users

group:

Help with syntax



RE: Help with syntax Krishnakumar S
10/24/2006 1:31:01 AM
sql server new users: Hi SAC

Try this one

UPDATE
TWDECL
SET
LPROD = t2.LPROD, LQORD = t2.LQORD,
FROM
TWDECL t1
INNER JOIN
TWDECLTMP t2
ON
t1.LORD = t2.LORD And t1.LLINE = t2.LLINE

--
Krishnakumar S


[quoted text, click to view]
Help with syntax SAC
10/24/2006 2:14:26 AM
I need help with this sql syntax:

UPDATE TWDECL
SET TWDECL.LPROD = TWDECLTMP.LPROD, TWDECL.LQORD = TWDECLTMP.LQORD,
FROM TWDECLTMP, TWDECL
WHERE TWDECLTMP.LORD = TWDECL.LORD And TWDECLTMP.LLINE = TWDECL.LLINE

Not sure how to includ the second table in the syntax.

Also, do I need to include the object's owner's name in this, too?

Thanks.

Re: Help with syntax SAC
10/24/2006 10:40:13 AM
Thanks!
[quoted text, click to view]

AddThis Social Bookmark Button