Solved

UPDATE FROM QUERY

Posted on 2008-10-18
1
276 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now