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

converting update sql to oracle

Status
Not open for further replies.

Nordyck

Programmer
Aug 16, 2001
57
US
Trying to convert this to oracle syntac

Update G081_ELTNHA e set e.NHAPN = e1.PN
inner join G081_ELTNHA e1 on (e.NHACEI = e.CEI and e.NHASN = e1.SN)

Thanks,
Dave

nordycki@hotmail.com
 
Broadly, the syntax is:

Code:
Update G081_ELTNHA e
set e.NHAPN =
(select e1.PN
from G081_ELTNHA e1
where e.NHACEI = e.CEI and e.NHASN = e1.SN )

I can't however comment on whether the update makes much sense. The condition "e.NHACEI = e.CEI" looks pretty suspicious.




For Oracle-related work, contact me through Linked-In.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top