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 equi join with example?

1098


How each E-R model constructs can be mapped to the relational model?

983


What is the largest component inside a field?

1095


What is the purpose of a table?

944


Define candidate key, alternate key, and composite key.

906


Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?

947


query processing

2141


wat wil hapn if we give the both read and deny read permission to user?

2090


What are the various Operating system files that every SQL server 2005 database has and what is the purpose.

1039


Is it possible to replicate data from sql server to oracle? : sql server replication

1070


What is the difference between the 2 operating modes of database mirroring?

1090


What is the language structure to add a record to a table?

1008


What is optimization and its types?

952


What is difference between joins and subqueries?

1092


What is advantage data architect?

902