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

What is best institute to Learn DotNET And SQL in chennai?

1777


Explain transaction server implicit?

615


Explain some stored procedure creating best practices or guidelines?

597


How to rebuild indexes with alter index ... Rebuild?

677


What are tables in sql server?

615






Do you know sql server 2008 introduces automatic auditing?

601


Explain what is the main purpose of having conversation group?

613


How to list all tables in the database using odbc_tables()?

653


Tell me in brief how sql server enhances scalability of the database system?

613


What is the purpose of the model database?

671


What is role playing dimension with two examples? : sql server analysis services, ssas

673


What is difference between clustered and non clustered index?

604


what authentication modes does sql server support? : Sql server database administration

616


What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?

691


explain what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

547