Solved

UPDATE FROM QUERY

Posted on 2008-10-18
1
279 Views
Last Modified: 2012-05-05
I need SQL query language statement help
I need to update a field in one table with the value of a field in another table using a query statement where both tables have a common employerID, employeeID and TrasnactionID
Both fields are varchar(3) values.
0
Comment
Question by:mismcc
1 Comment
 
LVL 60

Accepted Solution

by:
chapmandew earned 250 total points
ID: 22748550
update t2
field = t1.field
from table1 t1
join table2 t2 on t1.employeeid = t2.employeeid and t1.transactonid = t2.transactionid
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question