Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link and update a table 1

Status
Not open for further replies.

Michael57

Technical User
Nov 15, 2005
131
CA
I need to update a field in one table "Work" based on a value in another table "Job". The two tables should be linked by the field "job#". I want script to update a field "status" in table Work based on the value of "status" in the table "Job".
Can anyone please help me on this. Thanks in advance.
 
Code:
UPDATE Work SET Status = Job.Status
FROM Work
INNER JOIN Job ON Work.JobId = Job.JobId

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top