I have a database table with 3 columns. I want to find all duplicates that have snuck in un-noticed and tidy them up.
Table is structured approximately
ID ColumnA ColumnB
0 aaa bbb
1 aaa ccc
2 aaa bbb
3 xxx bbb
So what would my query look like to return columns 0 and 2 as both column A and column B make a combined duplicate entry?
Standard sql preferred, but is running on a SQL 2008 server