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 / cesar di sanctis

select * from <table_name>
where <column_name> in
(select <column_name>
from <table_name>
group by <column_name>
having count(*) > 1)

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can we take a backup of a mysql table and how can we restore it. ? : Sql dba

734


Why is sql better than hql?

705


who introduced sql?

775


Are there any features that are decommissioned in 11g that are not present in 11g?

1848


What is cross join sql?

694


What are the possible values for the boolean data field?

709


What are the three forms of normalization?

779


What is ttitle and btitle?

787


How do I edit a stored procedure?

743


What is a schema? How is it useful in sql servers?

814


Is sqlite thread safe?

812


how to create a new table in mysql? : Sql dba

728


Is sql a backend?

793


Is sql a case sensitive language?

726


What is snowflake sql?

824