TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Update a table using JOIN in SQL Server
Ashish Srivastava
Apr 15
2016
Code
713
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
UPDATE
t1
SET
t1.TID = t2.DOID
FROM
dbo.Table1
AS
t1
INNER
JOIN
dbo.Table2
AS
t2
ON
t1.CommonField = t2.[Common Field]
JOIN
SQL Server
Update a table