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 / rajkumar v
select Dept_Name,count(Dept_Name) as 'No. of employee'
from tbl_dept group by Dept_Name having COUNT(*)>1
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to handle error or exception in sql?
Explain the truncate command?
What are key constraints?
Can you edit the .rdl code associated with a linked report?
What is a partition key?
How will you make an attribute not process? : sql server analysis services, ssas
Explain the usage of floor function in sql server.
What is the ‘fillfactor’?
what is create database syntax? : Sql server database administration
Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?
What are rows and columns?
How to fetch the next row from a cursor with a "fetch" statement?
How to create a testing table with test data in ms sql server?
Define candidate key, alternate key, and composite key.
What are the differences between stored procedure and the dynamic sql?