Which Department has MOST NUMBER of employees?
Answer Posted / cvsrao
select d.deptname, count(*) as cnt from Employee e inner join
Department d on e.DeptId=d.DeptID
group by DeptName
having count(*) in
(select count(*) from
(select DeptId, count(*) as cnt from Employee group by DeptId)as cnt)
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What is rowid and rownum in oracle?
What is a table index?
Can you create a synonym without having a table?
What happens to the current transaction if a ddl statement is executed?
candidate key is subset of super key but not vice-verse explain
What is oracle rownum?
Does oracle database need java?
How to add a new column to an existing table in oracle?
Describe an oracle table?
How to use fetch statement in a loop?
Explain the use of record option in exp command.
What is a nvl function?
How to write text literals in oracle?
What is a system tablespace and when it is created?
Can a formula column referred to columns in higher group ?