How to retrieve Duplicate Rows only in a Table?
Suppose if a Table Name is "Education". It consists of
multiple columns. Then if we insert rows into this table
with duplicate records then how can we retrieve only
duplicate records from that table?
Answer Posted / dev
SELECT * FROM TAB1 A WHERE A.ROWID > ANY
(SELECT B.ROWID FROM TAB2 WHERE A.COL1=B.COL1)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is left join inner or outer by default?
Why partition by is used in sql?
What is full join in sql?
what are numeric data types? : Sql dba
Which one is better subquery or joins?
What is example of database?
List the different type of joins?
How do you determine the current isolation level? : Transact sql
what is bdb (berkeleydb)? : Sql dba
what is a unique key ? : Sql dba
What is the largest value that can be stored in a byte data field?
what is data integrity? : Sql dba
How do I view an execution plan in sql?
discuss about myisam index statistics collection. : Sql dba
Why do we need sharding?