Home Forums SQL Server 2008 T-SQL (SS2K8) Single Update Query - Required RE: Single Update Query - Required
robertd 77391
SSC Journeyman
Points: 97
More actions
March 12, 2013 at 3:15 pm
#1596292
A simple way to do this:
update #Table1
set #Table1.SID = #Table2.aID
from #Table2
where #Table1.Sno = #Table2.Sno ;