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

Ans for 1st Query
How to retrieve duplicate rows in a table?

SELECT * FROM EMP1 WHERE (EMP_ID IN (SELECT emp_id FROM
emp1 GROUP BY emp_id HAVING COUNT(emp_id) > 1))

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a query for primary key constraint with identity key word?

1084


What is database isolation in sql server? : sql server database administration

1159


How do I create a stored procedure in sql server?

1097


What is mssql?

1033


How to view existing indexes on an given table using sys.indexes?

1153


What are the tool windows in sql server management studio? : sql server management studio

1124


How to write character string constants or literals in ms sql server?

1068


Create and insert into temp table in sql server?

1084


Explain mixed authentication mode of sql server?

1120


Can you explain different types of joins?

990


What is function of CUBE ?

1078


What are drillthrough reports?

161


How to resolve the orphan use problem? : sql server security

1075


What is format parameter in ssrs?

150


Explain the categories of stored procedure?

982