Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 operators deal with null?

1097


What is the difference between jpql and sql?

1086


What is sql prepared statement?

976


what is text? : Sql dba

1065


Which sql statement is used to delete data from a database?

952


How do I upgrade sql?

998


what is 'mysqladmin' in mysql? : Sql dba

1019


What is trigger explain it?

1005


Can dml statements be used in pl/sql?

1071


How to get help at the sql prompt?

1108


How do I run a script in sql developer?

941


What is a table partition?

1119


Explain the uses of database trigger.

1105


How do I truncate a sql log file?

1061


How do you concatenate in sql?

1021