Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What do you understand by triggers and mention the different types of it?

998


Explain the properties of subqueries in sql server?

1141


What is ems sql management studio? : sql server management studio

1167


Why we need to use secondry database file? though, we can do same work using primary database file also.

7009


Explain the difference between delete,drop and truncate in SQL Server?

1163


What are pessimistic lock and optimistic lock?

1141


What is failover clustering overview?

1141


Can we use custom code in ssrs?

1165


Define ACID properties in a Database?

1104


What do you mean by acid?

1058


How to fetch the next row from a cursor with a "fetch" statement?

1111


What is always encrypted?

1056


what is a mixed extent? : Sql server administration

1175


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

1123


What is a cube? : sql server analysis services, ssas

1053