Write a query to delete duplicate records in SQL SERVER
Answer Posted / vijay
WITH INTER_TABLE(ROW, COL1) AS(
select row_number() over (partition by
COL1 order by COL1) as ROW ,COL1 from [TABLE_NAME]
)
Delete from INTER_TABLE where ROW > 1
| Is This Answer Correct ? | 22 Yes | 4 No |
Post New Answer View All Answers
Explain what are page splits? : SQL Server Architecture
explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?
How do I find the transaction log size in sql server?
Difference between primary key and clustered index?
How to delete duplicate rows?
what are the basic functions for master, msdb, model, tempdb and resource system databases? : sql server database administration
What is the difference between DataRow.Delete() and DataRow.Remove()?
How to scale out a federation by Sql statement?
Can you roll back the ddl statement in a trigger?
What is used to replicate sessions between instances in coldfusion clusters?
Explain the first normal form(1nf)?
What is change tracking in sql server?
Write a SQL query in order to merge two different columns into single column?
Tell me the use of keyword with encryption. Create a store procedure with encryption?
What are the types of database recovery models?