how to delete duplicate rows from table in sql server
Answers were Sorted based on User's Feedback
Answer / suresh s
delete tblname where columname in (select columnname
FROM tblname GROUP BY columnname having count(columnname)
>=2)
| Is This Answer Correct ? | 25 Yes | 30 No |
Answer / swapna
We can delete duplicate rows from table by using distinct
command.
| Is This Answer Correct ? | 10 Yes | 35 No |
What is mssql?
What is an index?
What are the different types of backups that exist?
What is thr feature of change data capture?
Explain fundamentals of Data ware housing & OLAP?
can i write function in stored procedure and stored procedure in function and nested procedure.Give one example for each question?
Name few of the dcl commands in sql?
What information is maintained within the msdb database?
How to link up the text file to a Database table?
What is a ddl statement?
What is the default isolation level of the sql server database?
Explain log shipping?
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)