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...

how to get the no employee in each department including the
dept which has 0 employee

Answer Posted / shailesh

select d.department_id,count(e.employee_id) from
departments d
left outer join employees e
on(e.department_id=d.department_id)
group by d.department_id;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can multiple columns be used in group by in oracle?

1037


defination of bitmap index

2177


definition of cluster and non-clustered index?

3100


What is the difference between $oracle_base and $oracle_home?

1136


Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?

1930


How we can able to import our own template (users designed MS-Word templates) which has many tabular columns; need to pass some values generate by Oracle-reports9i? Actually need to import more than 400 MS-Word templates into Oracle Reports-9i to minimize layout design in Reports.

2261


What is Undo Management Advisor in Oracle?

1151


What is meant by joins? List out the types of joins.

1103


How do you store pictures in a database?

1057


What is a sub query? Describe its types?

1071


What is the meaning of recursive hints in oracle?

1098


what is port in oracle? how is it related to database application.

1991


How to export your own schema?

1051


How to invoke the original export import utilities?

1132


What is the minimum client footprint required to connect c# to an oracle database?

1161