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

What is a user-defined function in the sql server and what is its advantage?

1105


What are orphan records?

932


What is sql server profiler trace data file?

1114


Why we use functions in sql server?

1082


Explain the difference between primary keys and foreign keys?

1034


How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?

1016


explain the storage models of olap? : Sql server database administration

962


Where are SQL server users names and passwords are stored in sql server?

1273


How to loop through the result set with @@fetch_status?

1351


What is TDS(Tabular Data Stream) Gateway?

121


What is the difference between join and inner join?

1017


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

989


What is trace flag in sql server?

1029


What is set nocount on?

940


Can you explain different types of joins?

939