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 the difference between DataRow.Delete() and DataRow.Remove()?

1210


Explain what are the different index configurations a table can have?

1092


Define self join in sql server joins?

935


What is conditional split?

1042


Why do we use trigger?

948


Is it safe to delete log files?

899


Mention the differences between having and where clause.

1041


Which Model uses the SET concept

978


What does the on update no action do?

999


What are sql azure firewall rules?

106


How to check if stored procedure is running in sql server?

1024


Explain how to send email from sql database?

1023


How to set a database state to offline in ms sql server?

1020


Is there any difference between primary key and unique with the not null condition?

925


what are user defined datatypes and when you should go for them? : Sql server database administration

992