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
what is blocking? : Sql server database administration
Explain what is cte (common table expression)?
Define views.
Give a example to search fr a string in all stored procedure in sql server.
What is transact-sql ddl trigger?
What is sqlservr.exe - process - sql server (sqlex?press)?
What are key constraints?
What are ddl triggers and types of ddl trigger?
How to list all dsn entries on your local machine using odbc_data_source()?
What are the system database in sql server 2005?
Describe and explain about SQL native client?
How many types of local tables are there in sql server?
What is the Control Flow in SSIS
Can group functions be mixed with non-group selection fields in ms sql server?
what are constraints? : Sql server database administration