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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UPDATE a column using the value in another table 1

Status
Not open for further replies.

deucesp97

MIS
Sep 14, 2000
13
0
0
US
I am trying to use the UPDATE statement to update a table that currently has data. There is a column "QUEUE_DT" that I need to update using the data currently in the table. I would like to do something like this:

UPDATE INVOICE
SET QUEUE_DT = SCE5200.APROVQUECREATEDT
FROM SCE5200 LEFT JOIN INVOICE
ON SCE5200.DOCID = INVOICE.INVOICE_NUMBER
WHERE INVOICE.REV_TYPE = 'APR';

Any suggestions! [sig][/sig]
 

UPDATE INVOICE
SET QUEUE_DT =
(select SCE5200.APROVQUECREATEDT
FROM SCE5200
where SCE5200.DOCID = INVOICE.INVOICE_NUMBER)
WHERE INVOICE.REV_TYPE = 'APR'; [sig]<p>Jim<br><a href= > </a><br>oracle, vb, some javascript[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top