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 is the difference between stored procedure and functions?

1075


What are the different methods available under sqlcommand class to access the data?

1076


What are sub reports and how to create them?

128


What are 3 ways to get a count of the number of records in a table?

1032


How to execute a stored procedure in ms sql server?

1092


What is analysis service repository?

983


What is the size of transaction log file?

880


What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

1143


How to execute stored procedure in select statement sql server?

998


How to check if stored procedure is running in sql server?

976


What are the different types of collation sensitivity?

1068


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2549


What is a livelock?

920


What are the types of sql server?

1006


What are the types of subscriptions in SQL Server replication?

977