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 / vijendra singh shakya

For Employee table plz use the following Query...

select [empid] from employee group by [empid]
having count(empid)>1

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does partitioning help performance?

997


How to declare and use cursor variables?

1255


What are triggers in ms sql server?

1230


How to enter date and time literals in ms sql server?

1067


What is the new security features added in sql server 2014? : sql server security

1050


What is the security principal at the database level that represents your session?

994


What is the difference between set and select?

1163


How to use subqueries with the exists operators in ms sql server?

1182


How to select true false based on column value in sql server?

1084


What are the differences between substr and charindex in sql server.

1191


What is an example of a foreign key?

1033


How to modify the underlying query of an existing view?

1031


What action plan is preferred if sql server is not responding?

1159


last function used in MS Access to convert sql what function will use in sql

2114


Explain what is use of dbcc commands?

1136