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 is primary key in db?

748


How do I make sql search faster?

784


How many sql databases can you have on one server?

785


Does pl sql work in mysql?

715


What is pl sql architecture?

715


Which certification is best for sql?

748


explain what is mysql? : Sql dba

810


Does sql backup shrink transaction log?

749


What does subquery mean in sql?

763


What is rowid in sql?

683


How to test for null values?

787


How do I remove sql developer from windows 10?

718


What is rank dense_rank and partition in sql?

770


What are secondary keys?

751


Is not equal in sql?

772