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

can any body tell me how to know the password of current user in sql server

1578


How do I edit a procedure in sql server?

546


What do you understand by intent locks?

571


Write the syntax for stuff function in an sql server?

533


How to update a field in SQL after ALTERING a row?

690






What Are the Main Features of SQL Azure?

95


What is the new security features added in sql server 2014? : sql server security

563


How many triggers you can have on a table?

531


What are types of storage modes? : sql server analysis services, ssas

579


How to modify existing triggers using "alter trigger"?

527


What is the difference between truncate and delete commands?

563


what are the three command line utilities and what are their primary functions?

101


What does REVERT do in SQL Server 2005?

558


Explain time data type in sal server 2008?

549


Explain active/passive and active/active cluster configurations?

625