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 instead of dml trigger?
What is logon trigger?
What options are available to audit login activity? : sql server security
Explain about unique identifier data type in sql server?
List some case manipulation functions in sql?
Can I remove the default constraint columns in SQL SERVER?
how to do partition in sqlserver
how to replace double quotes by single quotes in sql server
Difference between rowid and rownum in SQL?
what is the difference between openrowset and openquery?
What is the difference between local and global temporary tables?
How maney row would be print after join if A table have 100 rows and B table have 50 rows...
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)