Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to find Duplicate records by comparing the previous records received in a table and update one c

1057618Mar 12 2014 — edited Mar 12 2014

I have a table

Seq_numbercreate_dtcol1co2col3is_load
11/1/2014abc
22/1/2014dgt
33/1/2014abc
43/1/2014dry

Everyday data is loaded to the table through loader. I want to write a query where it should find the duplicate data in the current day record by comparing with the previous days records and update the column is_load = 'D'(as of Duplicate) if any duplicate record is found.

For example: Above table should be like this

Seq_numbercreate_dtcol1col2col3is_load
11/1/2014abc
22/1/2014dgt
33/1/2014abcD
43/1/2014dry
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2014
Added on Mar 12 2014
8 comments
822 views