Database Management
primer-original-v2mediumDatabase Management05 Sql Select Statementprimer-original-v2

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;

Detailed Solution & Conceptual Analysis

This question has been retained as-is due to its unique context.

Key Engineering Takeaway

In Database Management, understanding the underlying mechanics of Database Management is critical for writing performant, bug-free production code and passing rigorous technical architecture reviews.

Related Database Management questions

Practice more Database Management questions

PrimerPrep has independently reviewed practice questions and coding exercises — all free.