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...

hi friends please answer this question ASAP:-
how to count the no. of employee in a each department
or
no. of employee in each location by using emp/dept table

Answer Posted / rajkumar v

select Dept_Name,count(Dept_Name) as 'No. of employee'
from tbl_dept group by Dept_Name having COUNT(*)>1

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you go about resolving deadlocks?

973


How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?

2021


When would you use sql joins?

965


What happens to a trigger with multiple affected rows?

947


What is the maximum length of an alert name?

1001


Does index slows down insert statements?

1003


How can I check if a view exists in a sql server database?

1040


Do you know what is normalization of database? What are its benefits?

1125


What are data regions?

136


How do triggers work?

943


What do you understand by replication in sql server? Mention the different types of replication in sql server.

949


What is exclusive locks?

961


What are ddl (data definition language) statements for tables in ms sql server?

1104


How do I view a stored procedure in sql server query?

935


What is a table called, if it has neither cluster nor non-cluster index? What is it used for?

1032