I want to know how to update table using sub query in SQL server.
Thank you.
Update Table using Sub Query in SQL Server
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Aug 12, 2012, 6:47 PM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Aug 12, 2012, 9:49 PM EDT
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.