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 to select first 5 records from a table? : Sql dba

922


Why is a primary key important?

967


Is left join same as inner join?

1023


What are the different ddl commands in sql?

1066


How much does sql certification cost?

1017


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

898


What is dense_rank?

879


What is the difference between subquery and correlated query?

991


What are sql*plus environment variables?

1032


How can you load microsoft excel data into oracle? : aql loader

1130


Is sqlite thread safe?

993


Is merge a dml statement?

923


What is exit statement?

959


How can triggers be used for the table auditing?

1011


What is the command used to fetch first 5 characters of the string?

1336