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 is default constraint in ms sql server?
What is transaction server auto commit?
What is xdr?
How to select nth record from a table?
13 Answers DELL, Microsoft, Ramco,
What is use of attribute hierarchy ordered ? : sql server analysis services, ssas
What is the advantage of sql server?
What are the different types of normalization?
What are the dmvs?
If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security
What is the difference between DTS and SSIS?
Is mysql better than sql server?
What are cursors? Name four types of cursors and when each one would be applied?
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)