Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a query to delete duplicate records in SQL SERVER

Answer Posted / skumar

Hi friends, please just try out this. This works fine for me.

We have lot of methods to do this. But using temp table,
drop the original table,retain the temp as orinial is not a
good pratice.

When u have large no of data it will affect ur performance.


DELETE FROM employee WHERE((SELECT eid,COUNT(eid) FROM
employee GROUP BY eid) > 1)

Is This Answer Correct ?    15 Yes 46 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to delete an existing row with delete statements in ms sql server?

1100


What is extended stored procedures?

970


What is the difference between clustered index and primary key?

925


What is stored procedures?

1051


What are the difference between primary keys and foreign keys?

970


How to execute a stored procedure in ms sql server?

1186


List some advantages and disadvantages of stored procedure?

1017


Explain tablesample?

1002


List the different types of joins?

1015


Difference between uniqe index and uniqe constraint?

986


Explain nested join?

990


Can we perform backup restore operation on tempdb? : sql server database administration

1003


What are the 3 types of schema?

1114


How are the unique and primary key constraints different?

1078


What are page splits?

1002