Is it possible to delete duplicate rows in a table without
using a temporary table ?
Answer Posted / krishnaraj p n
Can be done in a simple way.
DELETE FROM <TABLE NAME > WHERE <COLUMN NAME >IN
(
SELECT <COLUMN NAME> FROM <TABLE NAME >
GROUP BY <COLUMN NAME>
HAVING COUNT(<COLUMN NAME>) > 1
)
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
what's sql server? : Sql server database administration
what are different types of raid configurations? : Sql server database administration
Explain different types of self contained sub query?
When would you use sql joins?
how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration
What is the sql profiler?
When would you use the stored procedures or functions?
Can you tell me about the concept of ER diagrams?
Explain what are page splits? : SQL Server Architecture
What happens to a trigger with multiple affected rows?
What is after dml trigger?
What is a covered index?
What is the order by used for?
what is raid and what are different types of raid configurations? : Sql server database administration
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?