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 is a primary key? : Sql dba

813


How do I create a memory optimized filegroup?

756


how to get a list of columns in an existing table? : Sql dba

774


Can we rename a column in the output of sql query?

792


What is difference between sql and oracle?

841


Why do we need databases?

796


What is a sql select statement?

824


Are stored procedures faster than dynamic sql?

812


What is before and after trigger?

731


What does inner join mean?

805


What is sql in oracle?

839


What is cursor in pl sql with examples?

741


Does truncate require commit?

774


What is a procedure in pl sql?

857


How to use transactions efficiently : transact sql

829