Employees who earn more than their manager
JoinsMedium
Return the name of employees whose salary is higher than their direct manager's, ordered by name. Return an empty result if there are none.
Tables
departments: id, nameemployees: id, name, department_id, manager_id, salary, hired_on
Row order is checked. Column names do not have to match, but the number of columns and the values do.