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 / karthik
i think ths will work!
select * from table_name where rowid in (select max
(rowid) from table_name groupby duplicate_field_name);
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What operators deal with null?
What is the difference between jpql and sql?
What is sql prepared statement?
what is text? : Sql dba
Which sql statement is used to delete data from a database?
How do I upgrade sql?
what is 'mysqladmin' in mysql? : Sql dba
What is trigger explain it?
Can dml statements be used in pl/sql?
How to get help at the sql prompt?
How do I run a script in sql developer?
What is a table partition?
Explain the uses of database trigger.
How do I truncate a sql log file?
How do you concatenate in sql?