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

Define a temp table?

964


Why cannot I use bind variables in ddl/scl statements in dynamic sql?

1132


What is sql performance tuning?

866


How is sql used in oracle?

968


Can we perform dml on view?

974


Write a query to find the names of users that begin with "um" in sql?

923


What is the difference between execution of triggers and stored procedures?

1050


Explain the purpose of %type and %rowtype data types?

875


what is the use of friend function? : Sql dba

970


What does trigger mean in psychology?

912


How do you remove duplicates without using distinct in sql?

918


What is meant by truncate in sql?

1003


Why is partition used in sql?

1049


What are the different dcl commands in sql?

1064


Can we join two tables without common column?

928