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 a sub-report?

146


What is recompile sql server?

1085


What are the types of database recovery models?

1188


Does sql server use t sql?

1071


How would you add a section to a table?

1110


How to concatenate two character strings together?

1168


How to update multiple rows with one update statement in ms sql server?

1262


How do I view a stored procedure in sql server query?

981


Do you know what is fill factor and pad index?

1047


How many types of subqueries are there in sql server?

1033


A trigger can reference objects outside the current database? State true or false.

1060


How to retrieve error messages using odbc_errormsg()?

1107


List some advantages and disadvantages of stored procedure?

1063


what is spatial nonclustered index

1037


What is a collation?

1132