📅  最后修改于: 2022-03-11 15:05:03.399000             🧑  作者: Mango
SELECT e.name AS 'Employee Name', e2.name AS 'Boss',
e.salary AS 'Employee salary', e2.salary AS 'Boss salary'
FROM employees e
JOIN employees e2 ON e.boss_id = e2.employee_id
WHERE e2.salary < e.salary;