Database Management
primer-original-v2mediumDatabase Management07 Joins & Subqueryprimer-original-v2

To create a report displaying employee last names, department names, and locations. Which query should you use to create an equi- join?

Answer options

A
department_id =
B
department_id; SELECT
C
last_name
D
department_name
E
location_id FROM employees e, departments d WHERE manager_id =manager_id; SELECT
F
last_name
G
department_name
H
location_id FROM employees e, departments d WHERE
I
department_id =
J
department_id;
K
last_name
L
depa5rtme2nt_na2me, 4
M
loca8tion_id FROM employees e, departments d WHERE
N
department_id =
O
department_id;

Correct answer: department_id =

Explanation

Quick AnswerThe correct answer is department_id = because it directly addresses the core logic of Database Management.

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

Related Database Management questions

Practice more Database Management questions

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