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
Do you know what is sql injection?
What are the new features of sql server 2008 r2 reporting service?
What happens if the update subquery returns multiple rows in ms sql server?
What are points to remember while using the fillfactor argument?
Explain what are various ways to enhance the ssrs report?
Why do we use non clustered index?
Explain primary key, foreign key and unique key?
What are the different types of replication you can set up in sql server?
Can group functions be mixed with non-group selection fields in ms sql server?
Explain use of expression builder.
How would we use distinct statement? What is its use?
How to retrieve error messages using mssql_get_last_message()?
How to test values returned by a subquery with the in operator?
Explain differentiate between a having clause and a where clause?
What are tables in sql server?