I am learning PostgreSQL and was practicing questions.
I am stuck at this question here
My Solution does not seem to work and I am not sure why:
SELECT first_name, last_name, department_id, department_name
FROM employees
JOIN departments ON departments.department_id = employees.department_id;
Their solution:
SELECT first_name, last_name, department_id, department_name
FROM employees
JOIN departments USING (department_id);
I'd really appreciate the help.