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

Can we deploy SSRS reports on our personal website?

162


Define model database?

931


Explain about thread and memory management process of SQL?

922


What is the difference between count and distinct count?

841


What command would you use to add a column to a table in sql server?

1232


How to delete duplicate rows?

928


Do you know what are pages and extents? : SQL Server Architecture

941


What is report server project?

133


What is filestream?

942


Explain what is public role in sql server?

1056


As per your opinion what are the five top responsibilities of a dba? : sql server database administration

1061


What is sql server management studio? : sql server management studio

1012


How do I view a script in sql server?

975


Can group by and orderby be used together?

963


what is isolation level at dead lock?

2088