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
What is difference sql and mysql?
What is a unique key and primary key and foreign key?
What are the two types of periodical indexes?
Why is pl sql needed?
Is primary key clustered or nonclustered?
How do sql databases work?
What are the basic techniques of indexing?
what are the different type of normalization? : Sql dba
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
how would you enter characters as hex numbers? : Sql dba
what is sql in mysql? : Sql dba
What is the difference between left join and right join?
Can unique keys be null?
what is a tablespace? : Sql dba
Do foreign keys improve performance?