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

What is difference between inner join and full join?

1043


What is function of ROLLUP ?

1069


What is a result set object returned by odbc_exec()?

1003


What is openrowset sql server?

1104


When should you use an instead of trigger?

945


How to set the current database in ms sql server?

1057


What do you know about system database? : SQL Server Architecture

970


What are the different kinds of ssrs reports?

213


what is a deadlock? : Sql server database administration

1037


what is database replicaion? : Sql server database administration

1164


Benefits of Stored Procedures?

956


What is a select query statement in ms sql server?

1049


Why we need sql server?

947


Explain what are magic tables in sql server?

979


What are the components of sql server service broker?

994