select
*
from (
-- Number the rows here.
select
*, row_number() over (
partition by Col01, Col02, Col03, Col04, Col05, Col06, Col07, Col08, Col09
order by Col10 desc
) n
from (
select * from [21]
union select * from [31]
union select * from [41]
union select * from [51]
union select * from [24]
union select * from [34]
union select * from [44]
union select * from [54]
) dupsByAllColumnsRemoved
) dupsNumbered
where n = 1
>
20 People are following this question.