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 / kalaiselvan.j

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

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create clustered index without primary key?

723


Differentiate between pl/sql and sql?

823


how can you create an empty table from an existing table? : Sql dba

868


What is the difference between drop and truncate commands?

721


Do we need commit after truncate?

824


what is user defined functions? : Sql dba

762


Can you do multiple joins in sql?

741


describe transaction-safe table types in mysql : sql dba

717


what does the t-sql command ident_current does? : Transact sql

746


How to run sql statements through the web interface?

740


How to display Row Number with Records in Oracle SQL Plus?

777


What are all different types of collation sensitivity?

758


Can we use commit inside a trigger?

783


what is the different between now() and current_date()? : Sql dba

723


What is the location of pre_defined_functions.

862