有人知道它会从输出中删除这样的重复项的语句吗?
DEPARTMENT_ID DEPARTMENT_NAME FULL_NAME JOB_TITLE
50 Shipping Alana Walsh Sales Representative
50 Shipping Alana Walsh Sales Representative
50 Shipping Winston Taylor Sales Manager
50 Shipping Winston Taylor Sales Manager
60 IT Alexander Hunold Sales Representative
60 IT Alexander Hunold Sales Representative
这是我到目前为止所拥有的:
select employees.department_id, departments.department_name, first_name || ' ' || last_name as full_name, job_title
from departments, employees, jobs
where employees.department_id = departments.department_id
and job_title like '%Sales%'
order by job_title, full_name;