Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Need help with an update
hi,
Two problems here:
> UPDATE TABLE_C SET TableBId = (
> SELECT DISTINCT Id FROM TABLE_B B, TABLE_C C WHERE
---------------------------------------|The Id column is ambiguously defined.
----------------|----------|
A possible solution would be
UPDATE table_c c
SET tablebid = (SELECT DISTINCT b.id
FROM table_b b, table_c c WHERE b.tableaid = c.tableaid AND b.regdate = c.regdate)WHERE c.id in (
Thanks
Saikat
-- Posted via Mailgate.ORG Server - http://www.Mailgate.ORGReceived on Fri Jan 25 2002 - 04:39:00 CST