Write a query to delete duplicate records in SQL SERVER
Answer Posted / mahesh babu ummaneni
inthis we have some steps
-->first rimove duplicate values from table
select distinct * from ta1
-->copy the data into anothetable
select distnice * into tb2 from tb1
-->remove the first table
drop table tb1
-->copy the tb2 data into tb1
select distinct * into tb2 from tb1
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are data files?
How do you delete duplicate rows in sql server?
Please differentiate between a local and a global temporary table?
explain the storage models of olap? : Sql server database administration
Can sql servers linked to other servers like oracle?
Explain about the command-line tool SQLCMD?
Tell me what is difference between view and materialized view?
What is log cache in sql server?
How to check if stored procedure is running in sql server?
Is BCNF better than 2NF & 3NF? Why?
Can we write trigger for view?
How do you create a data source?
Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?
How to how to convert numeric expression data types using the convert() function??
What are the requirements on sql server network connections?