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
Is it possible to have clustered index on separate drive from original table location?
System requirements for sql server 2005 express edition?
Name the different type of indexes in sql?
what is package and it uses and how can u call a package
What is Cross Join and in which scenario do we use Cross Join?
How to throw custom exception in Stored Procedure?
What is cdc in sql server?
Explain a checkpoint?
How much does sql server 2016 cost?
What is merge?
Why truncate is ddl command?
How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?
what is unique and xaml nonclustered index
Is the order of columns in the set clause important in ms sql server?
Tell me what is normalization? Explain different forms of normalization?