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
What is it’s similarity with sql server?
Explain different types of lock modes in sql server 2000?
What are basics of policy management?
in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it
What is use of except clause? How it differs from not in clause?
Is oracle faster than sql server?
What stored procedure would you use to view lock information?
What do you mean by subquery?
How do you clear a log file?
Explain triggers in sql?
Determine how to use the inserted and deleted pseudo tables?
How to list all stored procedures in the current database using ms sql server?
How to create median function?
Explain transaction server explicit transaction?
hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail