SQL Copy data from one table to another using join

UPDATE @SampleTable
SET Name = t.Name
FROM @SampleTable s
JOIN Table1 t
on t.Id = s.Id

Comments

Popular posts from this blog

Parse XML to dynamic object in C#

C# Crop white space from around the image