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 difference between unique and primary key?
How would you add a section to a table?
Is sql server is free?
Define self join?
What is clustered index
How to Sync Two SQL Azure Databases?
What is buffer cash in sql server?
Do you know what is replace and stuff function in sql server?
can a table be moved to different filegroup? : Sql server administration
Explain triggers in sql?
why would you call update statistics? : Sql server database administration
What is the default Port No on which SQL Server listens?
How dts is used to extract, transform and consolidate data?
How to select an exiting database using mssql_select_db()?
What encryption security is available in sql azure?