Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> ORA-01779: cannot modify a column which maps to a non key-preserved table
Hi,
I am trying to update a field (employee#)in a table when the same field (employee#) changes in another table using the sql below.
UPDATE (
SELECT
c.Employee# rel_empnum,
a.EMPLOYEE# inv_empnum
FROM
vw_tblInvestments a, vw_tblSub_Investments b, vw_TBLRELEASES c
the primary keys are:
Investment# - tblInvestments
Investment# - tblSub_Investments Subinvestment# - tblSub_Investments Release# - tblSub_Investments Release# - tblReleases
why am I receiving the message "ORA-01779: cannot modify a column which maps to a non key-preserved table" when all tables have primary keys and are joined through those keys?
Or is there a different way to write the sql statement?
Thanks for your help
April
Received on Mon Oct 28 2002 - 10:51:59 CST