Home Forums SQL Server 7,2000 Administration Help with Export to Temp Table please RE: Help with Export to Temp Table please
Amit Jethva
SSCarpal Tunnel
Points: 4707
More actions
February 16, 2004 at 3:21 am
#494148
This is what i would use in such a case.
select col1,col2 into #abc from tbl
group by col1, col2
having count(*) > 1
delete tbl
from #abc
where tbl.col1 = #abc.col1 and tbl.col2 = #abc.col2
insert tbl
select * from #abc
-- Amit