Write a query to delete duplicate records in SQL SERVER
Answer Posted / abc
SELECT distinct column_names INTO temp_table FROM main_table
drop table main_table
sp_rename temp_table,main_table
| Is This Answer Correct ? | 19 Yes | 12 No |
Post New Answer View All Answers
How extra digits are handled with numeric data type literals?
How to delete existing rows in a table?
How do you create type- insensitive operator?
What is the optimal disk configuration for a database server and what raid configurations would you use if budget is not a constraint?
How do you make a trace?
What is query processing?
How to Update from select query in sql server?
What are sub reports?
Explain “row_number()” in sql server with an example?
How to filter out duplications in the returning rows in ms sql server?
How to scale out a federation by Sql statement?
Why use identity in sql server?
What are the five major components of a dbms?
Define Business Edition in SQL Azure?
What number aggregate functions are accessible there in sql?