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

select count(*),column_name from table_name group by
column_name having count(*)>1

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is number function in sql?

728


Why is a trigger used?

724


What is the use of & in pl sql?

750


what is auto increment? : Sql dba

778


How can get second highest salary in sql?

722


what are the differences between require and include, include_once and require_once? : Sql dba

771


How do I run a sql script?

754


How to run sql statements with oracle sql developer?

813


What do you understand by pl/sql packages?

813


Which is better join or subquery?

828


how many ways we can we find the current date using mysql? : Sql dba

837


Can sql developer connect to db2?

786


Why do we use sql constraints?

898


Which table is left in left join?

743


How many types of triggers are there in pl sql?

807