How can you delete duplicate records in sql server?
Naveen Sikri
Select an image from your device to upload
first movethe records of original table into temp table using distinct condition here duplicate records doesnot move to temp table
then delete the original table
and finally move to original table from temp table.
select distinct * from emp into #emp1
delete table emp
select into emp from # emp1
select * from emp
it doesnt show duplicate records