Stats

107 Contributors: 2 Thursday, October 20, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap
Download eBook

Finding Duplicates on a Column Subset with Detail

Download sql eBook

Remarks

  • To select rows with out duplicates change the WHERE clause to "RowCnt = 1"

  • To select one row from each set use Rank() instead of Sum() and change the outer WHERE clause to select rows with Rank() = 1

Related Examples