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 / balaji

For Sample:
----------

select count(pmid) as Occurances,pmid from tablename group
by pmid having count(pmid)>1

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a composite primary key ? : Sql dba

1009


What are % type and % rowtype?

990


What is a database event trigger?

1101


How do you update f as m and m as f from the below table testtable?

1809


Can you selectively load only those records that you need? : aql loader

999


What is the most important ddl statements in sql are?

961


How do I write a cron which will run a sql query and mail the results to agroup?

931


Which operator is used in query for pattern matching?

1048


What is union and union all keyword in sql?

984


What is a join?

1031


Is inner join faster than left join?

1138


Explain aggregate functions are available there in sql?

954


Is sql injection illegal?

978


What is pivot table in sql?

1036


Does normalization improve performance?

995