I have tried some solutions from other questions, but they did not work well. I have a table with 2 columns, and I need to remove the row duplicates.
Column1 --- Column2 1 ---------------- 3 1 ---------------- 1 2 ---------------- 1 1 ---------------- 1 (remove this)
I found the duplicates with this:
select c1,c2, count(*)
from table
group by c1,c2
having count(*) > 1
How can I remove the duplicates and keep one entry? (sql server 2008r2)