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
What is wrong with sql server client libarary dll, ntwdblib.dll?
wat wil hapn if we give the both read and deny read permission to user?
What is a file group?
What to perform pattern match with the like operator?
What is transaction server explicit transaction?
List the advantages of using stored procedures?
What do you mean by tablesample?
How do I view a stored procedure in sql server?
What is the use of @@spid?
How can I create a report based on a query? : sql server management studio
How to defragment indexes with alter index ... Reorganize?
In case you have filters in your report, when filters will be applied in cached report instance?
Explain security with sql azure?
How can sql server instances be hidden?
Are connections to sql server encrypted?