I have business scenario as
-
We will get all the data to the database including the duplicates
-
If we have any duplicated in a table take the most recent record from duplicates on perticular key by making all the remaining deplicate records flag to ‘X’
-
While processing to the next level filter the extraction by flag != ‘X’ so we can get only one most recent record from all the duplicate for a perticulat key.
How can we update all the records except the TOP 1 record.
any thoughts
thanks
prav
Not sure if this is what you mean: