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 / eswar mudamanchu

For example i am taking Emp table:

Select Deptid,Count(empid) from Emp
Group By Deptid Order By deptid

Select Location,Count(empid) from Emp
Group By Location Order By Location

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sql server functions?

1028


Is it possible to have clustered index on separate drive from original table location?

1018


What does set rowcount do?

961


When does a workload on SQL Azure get throttled?

131


What are the different types of Indexes available in SQL Server?

1057


What are tables in sql server?

1097


What do you understand by the analysis services in sql server?

981


how to overcome kernel isssues

1687


What stored by the tempdb ? : sql server database administration

1098


What is primary key index?

1017


What are the features of Embedded SQL

1173


What does the not null constraint do?

1177


How do I install sql server?

937


What are the different Authentication modes in SQL Server and how can you change authentication mode?

1127


Can we store videos inside the sql server table?

1027