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 many jobs will create for Mirroring, Log Shipping, and Transactional Replication?
What are different replication agents and what's their purpose? : sql server replication
Do comments need to go in a special place in sql server 2005?
What is transactional replication?
How to list all login names on the ms sql server?
How to use “drop” keyword in sql server and give an example?
Plz tell about backup&recovery?
What is the maximum number of instances in 32 bit and 64 bit sql server 2012?
Different Types of Functions ?
What are dml triggers and types of dml triggers?
How to concatenate two character strings together?
Can we call future method from trigger?
Oracle (3259)
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)