Question 72
Explanation
Given two tables
Find the most appropriate statement of the given query :
Answer : 2. Total number of emplovees of department D1 and D2 if their total is > 5EMPLOYEE (EID, ENAME, DEPTNO)
DEPARTMENT (DEPTNO, DEPTNAME)
Find the most appropriate statement of the given query :
Select count (*) 'total' from EMPLOYEE
where DEPTNO IN (D1, D2)
group by DEPTNO having count (*) > 5
Explanation
Previous | Next |
UGC NET CS December 2019 - Question 71 | UGC NET CS December 2019 - Question 73 |
So, option 2 is correct answer.
Reference : SQL HAVING Clause Example