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


Please Help Members By Posting Answers For Below Questions

what does myisamchk do? : Sql dba

777


Why do we go for stored procedures?

775


What is #table in sql?

727


what is a scheduled jobs or what is a scheduled tasks? : Sql dba

767


What does the hierarchical profiler does?

794


how to get help information from the server? : Sql dba

702


What is t sql used for?

760


What is the syntax and use of the coalesce function?

852


What is the difference between view and stored procedure?

728


Explain the rollback statement?

801


What is the maximum database size for sql express?

777


How many columns should be in an index?

737


What is sql key?

716


How to read xml file in oracle pl sql?

710


Why is theta join required?

865