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 |
How to a Query to copy data from on table to another table.
Can I run multiple instances of sql server 2000 at the same time on one computer?
How do I manually uninstall an instance of sql server 2016?
Tell me what is a linked server?
How to download microsoft sql server 2005 express edition?
What sql server means?
What is row_number()?
what is performance tunning in sql server ? explain.
Do you know the capabilities of cursors?
your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration
How to retrieve duplicate rows in a table? How to delete the duplicate entries in a table?
15 Answers Leo Technologies, Mannar Company, Synechron,
What is a stored procedure?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)