does anybody know a statement where it would remove duplicates like this from the output?
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
here's what i have so far:
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;