[dba-SQLServer] UPDATE syntax with JOIN

Susan Harkins ssharkins at bellsouth.net
Wed Jul 6 10:21:13 CDT 2005


Thanks -- that was it. 

Susan H. 

Hi Susan,

This is the syntax you require.

UPDATE    [Table1]
SET [Field] = [NewValue]
FROM [Table1] INNER JOIN [Table2] ON
[Table1].[Field] = [Table2].[Field]
WHERE [criteria]

Cheers

Michael M




More information about the dba-SQLServer mailing list