UPDATE From one table to another using WHERE

Nigel Cross

New member
Local time
Today, 08:18
Joined
Jun 6, 2008
Messages
8
Can anyone advise me on what the SQL syntax would be to update a record within one table with the data selected from another table… e.g.


UPDATE TABLE1 (COL1)
With the data from TABLE2 (COLa,)

WHERE TABLE1 COL2 = TABLE2 (COLc,) or TABLE2 (COLb,) or TABLE2 (COLc,)


Thank you Nigel Cross
 
Something like:

Code:
UPDATE TABLE1 (COL1)
Select TABLE2.COLa from TABLE2 
WHERE TABLE1.COL2 = TABLE2 .COLc. 
       or TABLE1.COL2 = TABLE2.COLb
       or TABLE1.COL2 = TABLE2. COLc

I would also suggest checking the help file for more examples.
 
Thanks HiTec I give it a try.

Thank for your in put.
 

Users who are viewing this thread

Back
Top Bottom