Which Department has MOST NUMBER of employees?

Answer Posted / nannesaheb

SQL> Select Deptno,Count(*) from Emp
Group By Deptno
Having Count(*)=(Select Max(Count(*)) From Emp);


--If Any Queries Contact Me at nannesaheb.c@gmail.com
--Nannesaheb

Is This Answer Correct ?    8 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is literal?

673


What is oracle database 10g express edition?

675


src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));

1284


Explain an exception and its types?

687


Explain the use of grant option in imp command.

659






what are archived logs?

1811


What is blob datatype?

643


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

2333


How to convert characters to numbers in oracle?

674


what are steps for interface? where is exchange rate defined in which table?

1593


6. Display the client name and order date for all orders using the traditional method.

1880


What are a query and state the different types of queries and their uses?

592


How will you differentiate between varchar & varchar2?

667


What is oracle data type?

652


Explain about functional dependency and its relation with table design?

648