Remove Duplicates In Sql Using Dense Rank