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 sql key?
Is pl sql different from sql?
Name three sql operations that perform a sort.
What are the different types of triggers?
Explain autonomous transaction.
What is hibernate and its relation to sql?
When is the explicit cursor used ?
What is the difference between sql, mysql and sql server?
what is a database transaction? : Sql dba
What is a temporal data type?
how do you know the version of your mysql server? : Sql dba
Describe types of sql statements?
What is numeric function sql?
What is data manipulation language?
how to increment dates by 1 in mysql? : Sql dba