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

what are defaults? : Sql server database administration

1097


Write a program to fetch first 10 records from a file?

1014


What is the primary use of the model database?

1089


How to backup encryption key ?

185


How many partitions a clustered index has by default in sql server 2012?

1089


What is collation?

1144


What is the difference between osql and query analyzer?

1000


What is the fastest way to permanently delete a 1 million row table named customers?

1255


which table keeps the locking information? : Sql server administration

1104


Which language rdl files made of?

130


What are two difference between sql azure and azure tables?

159


What are “phantom rows”?

1666


How to loop through the result set with @@fetch_status?

1351


Explain different types of collation sensitivity?

983


What is the need for group functions in sql?

1086