Aug 11, 2010 #1 Nordyck Programmer Joined Aug 16, 2001 Messages 57 Location 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
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
Aug 20, 2010 #2 Dagon MIS Joined Jan 30, 2002 Messages 2,301 Location GB 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. Upvote 0 Downvote
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.