Database Management
Accenture PrimermediumDatabase Management05 Sql Select Statement

Select the suitable option for retrieving all the employees who have a manager?

Answer options

A
SELECT empname, manager_id FROM employee WHERE manager_id IS NOT NULL;
B
SELECT * FROM employee WHERE manager_id = NULL;
C
SELECT * FROM employee WHERE manager_id != 0;
D
SELECT * FROM employee;

Correct answer: SELECT empname, manager_id FROM employee WHERE manager_id IS NOT NULL;

Explanation

Use IS NOT NULL to filter rows where manager_id has a value.

Related Accenture Database Management questions

Practice more Accenture Database Management questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.