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 / amit

select * from taruntest1 b where rowid not in (select min
(rowid) from taruntest1 a where a.a=b.a );

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are tables in sql?

542


What does fetching a cursor do?

610


Can we join two tables without common column?

507


What is a recursive join sql?

591


What is oracle sql developer?

602






What is a nested table in word?

529


What are the constraints available in sql?

575


Can we use rowid as primary key?

539


Explain some predefined exceptions.

581


How many scalar data types are supported in pl/sql?

518


Can a foreign key be a duplicate?

499


what are date and time data types? : Sql dba

532


Does truncate remove indexes?

555


What is the need of a partition key?

530


What is sqlerrd?

524