write a query to remove duplicate records without using primary key column?
Answer Posted / mathanrathinam
delete tmp from(select col1,col2,row_number over(partition by col1,col2 order by col1,col2) rownum from tablename) tmp
where rownum >1
| Is This Answer Correct ? | 7 Yes | 8 No |
Post New Answer View All Answers
What is a dbms wizard?
How to stop log file growing too big?
Benefits of Stored Procedures?
Explain what are the basic functions for master, msdb, model, tempdb databases?
Explain what are various ways to enhance the ssrs report?
What happens if you add a new index to large table?
What is the difference between varchar and nvarchar datatypes?
State the difference between local and global temporary tables?
What are the database objects? : SQL Server Architecture
What is sql language?
What are the types of database recovery models?
What is data source object?
what are the Prerequisites for Replication?
Which sql server table is used to hold the stored procedure scripts?
Explain what are magic tables in sql server?