Question

Consider the table Employees(EmpID, Name, Dept, Salary). What will the following SQL query return? SELECT Dept, COUNT(*) FROM Employees GROUP BY Dept HAVING COUNT(*)  > 2;

A Top 2 departments along with their total employee counts
B Only those departments having more than 2 employees, with their employee counts
C First 2 departments having an employee count of more than 2
D Departments having exactly 2 employees
E Only employee names belonging to departments having number of employees greater than 2
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)