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 / rushella

select department_id,count(employee_id) from employees
group by department_id order by department_id;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to execute stored procedure and set temp table in sql server?

990


Can group by be used without aggregate functions?

855


What is triggers in ms sql server?

1048


What are various limitations of the views?

993


Can a table be created inside a trigger?

920


what is package and it uses and how can u call a package

1948


What is store procedure?

1002


Explain microsoft sql server functions?

1033


Why we use the openxml clause?

951


What are the default system databases in sql server 2000?

959


You want to check the syntax of a complicated update sql statement without executing it. What command should you use?

906


What is partition index in sql server?

1046


What are some examples of schemas?

908


Which tools are available to manage SQL Azure databases and servers?

113


What are the differences between union, intersect, and minus operators?

1015