Hi all,
I have a script that looks for duplicates and deletes them:
================================
select Cnt=min(Cnt)
into #temp
from Tbl1
group by BusinessPartnerNumber
having count(BusinessPartnerNumber)>1
DELETE Tbl1
FROM Tbl1 k INNER JOIN #temp t
ON k.cnt = t.cnt
=================================
I would like to repeate this until there is no more duplicates.
How can I do this?
I have a script that looks for duplicates and deletes them:
================================
select Cnt=min(Cnt)
into #temp
from Tbl1
group by BusinessPartnerNumber
having count(BusinessPartnerNumber)>1
DELETE Tbl1
FROM Tbl1 k INNER JOIN #temp t
ON k.cnt = t.cnt
=================================
I would like to repeate this until there is no more duplicates.
How can I do this?