Hi All,
I need help on my script.
SELECT A.TYPE, B.S_TYPE FROM table_one A, table_two B
WHERE A.ID = B.ID
AND A.type <> B.S_TYPE;
The above query works and its retuns some values.
Now I want to perform an update:
UPDATE table_one A SET A.TYPE = (SELECT B.S_TYPE FROM table_two B
WHERE A.id = B.id
AND A.TYPE <> B.S_TYPE);
When I ran this update script and I'm getting an error:
ORA-02290: check constraint
I tried disabling the constraint. Still it doesn't work.
Any thoughts?
Thanks
mkey
I need help on my script.
SELECT A.TYPE, B.S_TYPE FROM table_one A, table_two B
WHERE A.ID = B.ID
AND A.type <> B.S_TYPE;
The above query works and its retuns some values.
Now I want to perform an update:
UPDATE table_one A SET A.TYPE = (SELECT B.S_TYPE FROM table_two B
WHERE A.id = B.id
AND A.TYPE <> B.S_TYPE);
When I ran this update script and I'm getting an error:
ORA-02290: check constraint
I tried disabling the constraint. Still it doesn't work.
Any thoughts?
Thanks
mkey