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
System requirements for sql server 2005 express edition?
How to create a simple user defined function in ms sql server?
What happens to a statement batch if there is a compilation error?
Explain how to maintain a fill factor in existing indexes?
What do you mean by cardinality?
What are the advantages of the mirroring?
What are trace flags?
How to list all triggers in the database with sys.triggers in ms sql server?
What is a performance monitor?
you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration
How can you check the version of sql server?
What are the tool windows in sql server management studio? : sql server management studio
What are the advantages dts has over bcp?
Explain the dirty pages?
Create and insert into temp table in sql server?