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 in a table?
How to delete the duplicate entries in a table?

Answer Posted / madhur/amrutha

Consider a table emp with employee details. The Correct
code to retrieve duplicate rows :


select distinct * from emp where names in
(select names from emp group by names 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

What is the difference between functions and stored procedures?

1165


In which sql server version report builder introduced?

149


Do you know the different ddl commands in sql?

1054


Do you know what is replace and stuff function in sql server?

1020


How to download microsoft sql server 2005 express edition?

1047


Do comments need to go in a special place in sql server 2005?

859


What are the transaction properties?

1016


Tell me extended events in sql server 2008?

997


What is an identity?

1018


What command do we use to rename a database?

1078


What are the joins in sql server? : sql server database administration

1009


Do you know how to store and query spatial data?

1040


What is change data capture (cdc) feature?

1068


Detail about the hardware which is supported by SQL server?

1063


What are the database objects? : SQL Server Architecture

1052