write a query to remove duplicate records without using primary key column?
Answers were Sorted based on User's Feedback
Answer / 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 |
What are the differences between local and global temporary tables?
How do I create a stored procedure in dbml?
Define master database?
How each E-R model constructs can be mapped to the relational model?
How to create hyperlink from returned sql query ?
What is deadlock and how to avoid the deadlocks.
How to enter unicode character string literals in ms sql server?
Is INSTEAD OF trigger directly applicable to Table ?
What is temporal table?
How you can change the database name in SQL SERVER?
what is the difference between delete,drop and truncate
What is the difference between count () and rowcount ()?