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

select * from emp where sal in(select sal from emp group by
sal having count(sal)>1);

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many sql statements are used? Define them.

981


How many commands are there in sql?

970


What is the maximum number of triggers, you can apply on a single table?

944


Why is partition used in sql?

1049


What does where 1 1 mean in sql?

976


How do I remove all records from a table?

1023


How to select 10 records from a table?

1096


Which data dictionary views have the information on the triggers that are available in the database?

1179


How many scalar data types are supported in pl/sql?

974


What are different categories of sql commands?

1065


Is it possible to sort a column using a column alias?

990


What is cursor explain with example?

921


Explain the select statement in sql?

1041


What are tables in sql?

996


How do you delete a table?

988