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

Answer Posted / priti

select count(emp_id) from employee group by dept_id;

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is tns service name?

617


How can Oracle users be audited?

601


What are the general rules on data consistency?

587


How do I escape a reserved word in oracle?

625


if you ctreate table identity

1845






How to store only time; not date and time?

555


What do you mean by merge in oracle and how can you merge two tables?

522


How many memory layers are in the oracle shared pool?

638


What is the parameter mode that can be passed to a procedure?

569


What is analyze command used for?

574


How to execute a stored procedure in oracle?

618


How to select some columns from a table in oracle?

549


What do you know about normalization? Explain in detail?

497


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

1858


Why does for update in oracle 8 cause an ora-01002 error?

543