Which Department has MOST NUMBER of employees?

Answer Posted / sts

Select Deptno,Count(*) from Emp Group By Deptno having Count(*)=(SELECT max (count(*)) FROM EMP GROUP BY DEPTNO);

Is This Answer Correct ?    24 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to define an oracle sub procedure?

588


Can we use oracle pl/sql block in core java? if so how? pls get back to me .....

2493


What are set operators?

642


What are the components of logical database structure in oracle database?

570


How do I uninstall oracle 11g?

548






How to define a cusotmer as a supplier in ORACLE R12

1718


What do you mean by cdb and pdb in oracle 12c?

630


Explain the use of indexes option in imp command.

557


How to connect to a local oracle 10g xe server?

522


What is SQL Tuning Advisor in Oracle?

621


How do you tell what your machine name is and what is its IP address?

1504


How to increment dates by 1 in oracle?

553


How to convert a date to char in oracle? Give one example.

579


How to create a table interactively?

546


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

614