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 / madhu sudhan g

Hiii

Try this query it will give you the answer


select count(1) as EmpCount,EmployeeName from EMP
GROUP BY DepartmentName

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is join query?

587


What is scd (slowly changing dimension)? : sql server analysis services, ssas

671


What are number line correlation administrators will use while working with a subquery?

720


Can a unique index be created on a column, which contains null?

612


If user is owning any SQL Objects, can we drop that user

1694






What is a hint?

657


How do I debug a stored procedure in sql server?

622


How to use subqueries with the in operators in ms sql server?

647


What is query processing?

623


How to disable a login name in ms sql server?

675


what data regions are and what are the different data regions?

107


How many types of objects are there?

590


What is a database table?

610


What is a Join and explain its types?

688


what is denormalization? : Sql server database administration

568