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 |
How to retrieve data from log files in SQL SERVER ?????
Explain the different types of backups available in sql server? : sql server database administration
How to view existing indexes on an given table using sp_help?
i have account table which consists of account name,card no and card no consists 16 digits now i want to retrieve the data if card no starts from 4 then it should print visa and if it starts from 5 then it should print master so plse help me to write simple query with out store procs .
Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?
State a few properties of relational databases?
Is it possible to delete duplicate rows in a table without using a temporary table ?
Why SQL Agent is used?
Questions regarding Raiseerror?
Explain the purpose of indexes?
What are commonly used mssql functions in php?
What is primary key, unique key, and foreign key?
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)