Home Forums Article Discussions Article Discussions by Author Discuss content posted by Andy Riley Using Ranking Functions to Deduplicate Data RE: Using Ranking Functions to Deduplicate Data
Vamshi Bharath
SSC Journeyman
Points: 75
More actions
July 27, 2010 at 12:29 pm
#1198901
In most of the cases you need to retain the latest record from the duplicates. In that case matching rank=rownumber will not work.
So using ROW_NUMBER() partition and ORDER BY col DESC is always a good approach.