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

Answer Posted / sudipta santra

select distinct dept_no, nvl(count(emp_no),0) from dept
group by dept_no;

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In what script is snap$ created? In what script is the scott/tiger schema created?

2243


Explain about functional dependency and its relation with table design?

550


What is system tablespace?

630


What are the tools for Oracle ?

604


How to pass a cursor variable to a procedure?

557






What is recovery manager(rman) backup in Oracle?

625


Explain what does a control file contain?

607


What is the difference between post-database commit and post-form commit?

512


What is the string concatenation operator in oracle?

568


How to change system global area (sga) in oracle?

572


How to execute a stored program unit?

581


What privilege is needed for a user to query tables in another schema?

502


Explain the use of grant option in imp command.

576


List the types of joins used in writing subqueries?

573


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

562