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

How you can change the database name in SQL SERVER?

1136


Why we should not use triggers?

921


Where do we use trace frag?

971


How to insert data into an existing table?

921


How will you make an attribute not process? : sql server analysis services, ssas

1011


Determine how to use the inserted and deleted pseudo tables?

931


Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?

823


What are the different types of sub-queries?

997


Will sql server 2005 allow you to reduce the size of a column?

920


what is a self join? : Sql server database administration

964


Write SQL queries on Self Join and Inner Join.

1072


Write down the syntax and an example for create, rename and delete index?

925


Explain query editor regions

1005


What is a database table?

927


Can the “if update (colname)” statement be used in a delete trigger?

946