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

When sql appeared?

625


How many sql statements are used? Define them.

580


what is a unique key ? : Sql dba

547


Does db2 use sql?

515


What is the difference between rename and alias?

713






Explain spool.

691


Which table is left in join?

520


What is the usage of distinct keyword?

636


how to use case expression? : Sql dba

557


What is an implicit commit?

561


does sql support programming? : Sql dba

611


Can two tables have same primary key?

535


Explain two easy sql optimizations.

606


What are the three pl sql block types?

573


what is a database? : Sql dba

612