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

Answer Posted / sanjay pradhan

select d.deptno,count(ename)employees from emp e,dept d
where d.deptno = e.deptno(+)
group by d.deptno

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the predefined tablespaces in a database?

554


Can any one explain me when i execute below query.. select months_between('07-JUL-12','10-FEB-12') from dual; Out put:- 4.90322581 How oracle calculate?

930


how may join possible between (requisition with purchase order)

1697


How do I know if oracle is installed on windows?

486


What is control file used for?

602






In Oracle Applications We are Using Sub Ledger Accounting. When we Transfer the Data all modules (AP,AR,CE,FA) to SLA We done Some customizations? What are They??

1364


When do you get a .pll extension in oracle? Explain its importance

572


What is a package ? What are the advantages of package ?

601


How to bring a tablespace online?

518


How to convert character types to numeric types?

574


What are the extensions used by oracle reports?

571


How to define a procedure inside another procedure?

541


From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.

585


How to execute a stored program unit?

581


When do you get a .pll extension in oracle?

677