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 bcp? When does it used?

976


What is the distinction amongst delete and truncate?

1071


Sql server reporting services vs. Crystal reports.

131


What number aggregate functions are accessible there in sql?

1070


explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

2483


What is the difference between mysql and mysqli?

1202


What is the usage of sign function?

1109


What is intellisense?

1053


What command is used to delete a table from the database in the sql server and how?

1113


What is dbcc?

1135


How do users use Report Builder with SQL Server data sources?

154


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

1393


Is the log file is a part of file group?

1038


What is delete query?

940


What is log shipping? Can we do logshipping with SQL Server 7.0 ?

993