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

How to get execution statistics reports on query statements?

1010


Where do you use decode and case statements?

945


Explain the use of compress option in exp command.

969


State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.

979


Explain temporal data types in oracle

1044


How to store only time; not date and time?

960


How to do paging with oracle?

951


How to set up autotrace for a user account?

977


What is the dynamic sql in oracle?

1011


How to do clean up if create database failed?

975


What are the ways tablespaces can be managed and how do they differ?

2274


How to retrieve the count of updated rows?

1059


What is procedure overloading in oracle?

994


WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?

2253


What happens in oracle commit?

973