Software Engineer, Blogger, Gadgets, Sports, Circket, Movies and Gamer.
Wednesday, February 12, 2014
Update a table using JOINS in SQL Server
Here is how we can update a table using JOINS in SQL SERVER.
UPDATE Table1 SET Table1.Field1 = Table2.Field1 FROM Table1 INNERJOIN Table2 ON Table1.Field2 = Table2.Field2 WHERE-- YOUR WHERE CONDITIONS Table2.Field3 ISNOT NULL
No comments:
Post a Comment