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

SELECT RNO,NAME,COUNT(*) REP_COL FROM Education GROUP BY
RNO,NAME having Count(*)>1;

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are expressions?

561


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3103


What are procedures used for?

525


Can we delete column in sql?

557


What is the purpose of primary key?

528






Is sql a programming?

543


What are commit, rollback, and savepoint?

569


what is schema? : Sql dba

560


What is the sql case statement?

571


What are different joins used in sql?

548


What is indexing oracle sql?

558


Why do we use procedures in pl sql?

516


How do you declare a user-defined exception?

526


does sql support programming? : Sql dba

605


Can we insert in sql function?

537