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
how to drop an existing index in mysql? : Sql dba
how can you see all indexes defined for a table? : Sql dba
what is a constraint? : Sql dba
What is an oracle stored procedure?
What is varray in pl sql?
Which is faster truncate or drop?
What is dynamic sql in pl sql?
what are the difference between clustered and a non-clustered index? : Sql dba
what are the 'mysql' command line options? : Sql dba
What is identity column in sql server?
what is a database lock ? : Sql dba
Can ddl statements be used in pl/sql?
What do you think about pl/sql?
How do I find duplicates in a single column in sql?
what are rollup and cube in t-sql? : Transact sql