我编写了这个查询来显示在多伦多工作的所有员工的姓氏、部门编号和部门名称。
select last_name, job_id, department_id, department_name
from employees e
join departments d on d.department_id=e.department_id
join locations l on d.location_id=l.location_id and l.city='Toronto';
我收到此错误 ORA-00918: column ambiguously defined