How To delete duplicate record from a particular table?
Answers were Sorted based on User's Feedback
Answer / deepa
For Example
sno names
1 arun
2 arun
3 arun
6 arun
7 bala
11 bala
12 guna
9 guna
14 guna
10 raj
13 raj
Table Name T1
Fields Names Sno,Names
Delete From t1 where sno not in
(select min(sno) from t1 group by names)
| Is This Answer Correct ? | 2 Yes | 5 No |
Answer / parashu
Delete from <TableName> where <fieldName> in (select
<FieldName> from <TableName> Group By <FieldName> Having
(Count(<FieldName>)>1))
| Is This Answer Correct ? | 0 Yes | 8 No |
What is use of except clause? How it differs from not in clause?
Plz tell about backup&recovery?
Explain the difference between primary keys and foreign keys?
What is normalization and what are the advantages of it?
How can you ensure that the database and sql server based application perform well?
What is a scheduled job or what is a scheduled task?
What is self contained sub query?
how to retrive only second row from table in sql server 2000?
There are two tables (T1, T2) with different rows. Find the output of query. Select count(*) from T1,T2.
What is difference between rollback immediate and with no_wait during alter database?
What is standby servers? Explain types of standby servers.
How to bind a view to the schema of the underlying tables?
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)