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
What is the left table in sql?
how to get @@error and @@rowcount at the same time? : Sql dba
Is join and inner join the same?
what is the difference difference between procedure and packages
What is sql deadlock?
How many types of primary keys are there?
Explain the purpose of %type and %rowtype data types with the example?
What is the use of sqldataadapter?
What are local and global variables and their differences?
What does truncate mean in sql?
what is rollback? : Sql dba
What is the purpose of my sql?
Explain the savepoint statement.
What are some predefined exceptions in pl/sql?
What is db journal file?