Frank, use something like this....
UPDATE TEST1 SET CHR = ( SELECT CHR FROM TEST2 WHERE TEST1.num = TEST2.num ) adjust your query to... UPDATE TABLE1 SET TABLE1.FIELD = ( SELECT TABLE2.FIELD FROM TABLE1, TABLE2 WHERE TABLE1.KEY = TABLE2.KEY AND TABLE1.FIELD = 'Y' ) On Mon, 17 Jan 2005 16:42:23 -0500, Frank Mamone <[EMAIL PROTECTED]> wrote: > I am having trouble doing an update with a join in Oracle. I am > getting this error: > > SQL command not properly ended. > > Here is the generic syntax I am using: > > UPDATE TABLE1 > SET TABLE1.FIELD = TABLE2.FIELD > FROM TABLE1, TABLE2 > WHERE TABLE1.KEY = TABLE2.KEY > AND TABLE1.FIELD = 'Y' > > Thanks for your help. > > Frank > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190846 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54