how to delete duplicate rows in sql server2005
Answer Posted / enis ertem
with DeleteDups as
(
Select * from TableA AS T1
where KeyCol <
(Select Max(Keycol) from TableA as T2
where t1.Id = T2.ID)
)
Delete from Delete Dups;
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How to change server name in sql server?
what are the different stages of Report Processing?
What is the difference between the 2 operating modes of database mirroring?
Define right outer join?
How to use "begin ... End" statement structures in ms sql server?
What do you understand by replication in sql server?
What is resource governor in sql server?
How to create a large table with random data for index testing in ms sql server?
What is difference between line feed ( ) and carriage return ( )?
How to create a new schema in a database?
What is replace and stuff function in sql server?
Explain the third normal form(3nf)?
Explain tablesample?
Why truncate is ddl command?
Explain features and concepts of analysis services?