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

For Sample:
----------

select count(pmid) as Occurances,pmid from tablename group
by pmid having count(pmid)>1

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is memory optimized table?

577


What is the difference between pl and sql?

547


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

550


What are procedures used for?

533


How many types of primary keys are there?

533






What is procedure explain with program?

554


List the various privileges that a user can grant to another user?

587


When to use inner join and left join?

530


what are all different types of collation sensitivity? : Sql dba

528


Why are sql stored procedures used?

619


how would you get the current date in mysql? : Sql dba

554


What is the difference between rename and alias?

713


How do I start pl sql?

494


What does inner join mean?

559


Are pl sql variables case sensitive?

601