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

Define clusters?

657


How to check parameter value in stored procedure sql server?

480


How do you handle datasets larger than 50 gb?

140


What is an identity column in insert statements?

591


When should you use an instead of trigger?

565






What is importing utility?

558


what are isolation levels? : Sql server database administration

504


Does view occupy space?

528


What is the distinction amongst delete and truncate?

593


How to create user messages with print statements in ms sql server?

601


Explain the microsoft sql server delete command? : SQL Server Architecture

594


How should i optimize the time for execution of stored procedure having single input and many output from the different tables?

1480


What is join query?

508


How to select true false based on column value in sql server?

516


Do you know what are the differences between lost updates and uncommitted dependencies?

557