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


Please Help Members By Posting Answers For Below Questions

What is sql architecture?

563


What is nvarchar max in sql?

586


What is trigger in sql and its types?

538


What is view explain with example?

525


explain the delete statements in sql

585






who introduced sql?

574


what are the nonstandard string types? : Sql dba

614


Explain lock escalation? : Transact sql

710


How does index help in query performance?

569


How to create a menu in sqlplus or pl/sql?

618


how to delete an existing column in a table? : Sql dba

558


What is sql basics?

590


How do you bind variables in pl sql?

584


What is a constraint? Tell me about its various levels.

642


what does the t-sql command ident_current does? : Transact sql

546