For this table, I am writing a query (in the oraklovsky, native syntax)
SELECT EMPLOYEES.last_name as employee_name, EMPLOYEES.manager_id as employee_manager, DEPARTMENTS.manager_id as department_manager FROM EMPLOYEES, DEPARTMENTS WHERE ( EMPLOYEES.department_id = DEPARTMENTS.department_id AND EMPLOYEES.manager_id <> DEPARTMENTS.manager_id ); How to substitute in the columns employee_manager and department_manager instead of id the last_name value corresponding to these id ?
