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 / eswar mudamanchu

For example i am taking Emp table:

Select Deptid,Count(empid) from Emp
Group By Deptid Order By deptid

Select Location,Count(empid) from Emp
Group By Location Order By Location

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is acid properties?

1099


How many replicas are maintained for each sql azure db?

124


how you can move data or databases between servers and databases in sql server? : Sql server administration

966


What is sql azure database?

206


How to make a column nullable?

1115


What do you need to connect php to sql server?

1104


What should be the fill factor for indexes created on tables? : sql server database administration

1139


what is the maximum size of a row? : Sql server database administration

1015


What is attribute relationships, why we need it? : sql server analysis services, ssas

967


IF more than one Site is accessing the same Database server and I want to move the DB with Minimum down time? How will you do

1805


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1107


What are the new features in SQL Server 2005 when compared to SQL Server 2000?

1163


What is scheduled job and how to create it?

994


What do you think of this implementation? Can this be implemented better?

945


While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?

986