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...

employee table has employee id
-----------
empid
----------------
1
2
3
3
3
4
5
5
5
6
6
6
7
here the values r repeated two times.how to select the
repeated values only.i.e 3,5,6 should alone come.

Answer Posted / rajesh kumar

select empid from employee where empid in (select empid
from employee group by empid having count(empid) > 1)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to enter comments in transact-sql statements?

951


How do you handle datasets larger than 50 gb?

162


What are distributed partitioned views?

1085


What is attribute hierarchy? : sql server analysis services, ssas

1028


Why and when do stored procedure recompile?

989


What do you mean by 'normalization'?

1071


Explain the concept of view and Types of views in SQL server?

995


What is transactional replication?

973


Is there any difference between the primary key and unique key?

1009


What are different types of schemas?

950


Explain a join?

1072


Name few endpoints exposed by ssrs 2012?

359


What is a hint?

1004


What is RMS migrations?

2140


What are the database objects? : SQL Server Architecture

1058