...
UGC-NET DEC-2019 Part-2
November 27, 2023
STQC-NIELIT STA 2021
November 27, 2023
UGC-NET DEC-2019 Part-2
November 27, 2023
STQC-NIELIT STA 2021
November 27, 2023

Database-Management-System

Question 424
Given two tables EMPLOYEE (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

A
Total number of employees in each department D1 and D2
B
Total number of employees of department D1 and D2 if their total is >5
C
Display total number of employees in both departments D1 and D2
D
The output of the query must have atleast two rows
Correct Answer: B

Leave a Reply

Your email address will not be published. Required fields are marked *