The names of those departments where there are more than 100 employees have to be displayed. Given two relations, employees and departments, which query should be used?
Employee
---------
Empno
Employeename
Salary
Deptno
Department
---------
Deptno
Departname
Correct Answer:
Select departname from department where deptno in (select deptno
from employee group by deptno having count(*) > 100);
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PostgreSQL MCQ Questions