Hi,
I'm looking for an UPDATE statement where it will update a single duplicate row only and remain the rest (duplicate rows) intact as is, using ROWID or something else or other elements to utilize in Oracle SQL or PL/SQL?
Here is an example duptest table to work with:
CREATE TABLE duptest (ID VARCHAR2(5), NONID VARCHAR2(5));
run one INSERT INTO duptest VALUES('1','a');
run four (4) times INSERT INTO duptest VALUES('2','b');
Also, the first duplicate row has to be updated (not deleted), always, whereas the other three (3) have to be remained as is!
Thanks a lot, Val.