I'm unable to delete the rows of table A where its keys are WO_NO and ROW_NO. I wrote the following query but giving an error saying, invalid relational operation.
This is what I tried.
begin
DELETE FROM A
WHERE WO_NO,ROW_NO in (SELECT WO_NO,ROW_NO
FROM G1614617_1
MINUS
SELECT WO_NO,ROW_NO
FROM hirplk_test1);
dbms_output.put_line(SQL%ROWCOUNT);
end;
/
The select query returns the row values WO_NO and ROW_NO. but I cannot delete the records from tab A. Can someone please correct me.