I want to know how to update table using sub query in SQL server.
Thank you.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Aug 13, 2012, 1:49 AM
hi,
you can also acheive this by using inner join
update CustomerMaster
set CustomerMaster.Code = z.Code + 'AA'
from CustomerMaster z
inner join TEMP_DimCustomer b
on z.Key=b.Key
hope this will help you.
Akkiraju IvaturiPosted Aug 12, 2012, 10:47 PM