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 resultset concur_updatable?
How do you create a data source?
write a query to remove duplicate records without using primary key column?
What is compression - row-level and page-level compression?
What is side by side migration in sql server?
Explain different types of self contained sub query?
How many types of Outer Joins?What are they?
What is relationship? What number of sorts of relationship are there?
What is function of CUBE ?
explain query execution plan
Define the one-to-one relationship while designing tables.
Do you know what are different types of replication in sql server?
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)