QuestionQ5
VerifiedDisplaying Data from Multiple TablesEvaluate the following SQL statement:
SELECT e.emp_name, d.dept_name
FROM employees e
JOIN departments d
USING (department_id)
WHERE d.department_id NOT IN (10, 40)
ORDER BY dept_name;
The statement fails on execution. Which change corrects the error?
Community Discussion