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 bit data type?
Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture
Why we use the openxml clause?
What do mean by xml datatype?
What does the not null constraint do?
How maney row would be print after join if A table have 100 rows and B table have 50 rows...
what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration
What is always encrypted?
What is ms sql server triggers?
What is the diff between Static Queries and Dynamic queries give me some examples
What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?
Call by value and call by reference in procedure and function, with NOCOPY.
Oracle (3253)
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)