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

how to add a new column to an existing table in mysql? : Sql dba

584


Which kind of parameters cannot have a default value in pl sql?

595


How can I speed up sql query?

527


How can you fetch first 5 characters of the string?

554


When should I use nosql database?

553






What is left join in sql?

584


What does count (*) mean in sql?

1093


What is an oracle stored procedure?

592


Explain constraints in sql?

575


What is nested table in pl sql?

555


When do we use triggers?

585


what is bcp? When is it used?

582


How do I use google cloud in sql?

544


Can a foreign key have a different name?

515


What is the maximum size of sqlite database?

548