create table #t1(col1 int, col2 int, col3 char(50))
insert into #t1 values (1, 1, 'data value one')
insert into #t1 values (1, 1, 'data value one')
insert into #t1 values (1, 2, 'data value two')
;WITH [CTE_DUPLICATES] AS
(
SELECT RN = ROW_NUMBER() OVER (PARTITION BY col2 ORDER BY col1)
FROM #t1
)
DELETE FROM [CTE_DUPLICATES] WHERE RN > 1
select * from #t1
drop table #t1