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

What is the difference between truncate & delete command?

1183


How to export your own schema?

1007


How to delete a column in an existing table in oracle?

1073


How to use "while" statements in oracle?

1327


What is using clause and give example?

1046


Can a parameter be passed to a cursor?

1126


What is concurrency in oracle?

1008


How would you change old and new values in an insert, delete and update triggers?

1022


does the query needs a hint to access a materialized view?

1858


What are ddl statements in oracle?

1075


What is the exact use of Collections?

2143


Does oracle partitioning improve performance?

995


Explain the dml?

984


What is rich query?

983


What is the use of oracle?

1030