📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

How would you find all employees who report directly to manager 10?

A. SELECT * FROM Employee WHERE ManagerID IS NULL;
B. SELECT * FROM Employee WHERE EmployeeID = 10;
C. SELECT * FROM Employee WHERE ManagerID = 10; ✅
D. SELECT * FROM Manager WHERE EmployeeID = 10;

Correct Answer: C. SELECT * FROM Employee WHERE ManagerID = 10;

Explanation

Direct reports are rows whose ManagerID equals the manager's EmployeeID, so filtering on ManagerID = 10 returns them.