select employee_no,salary,manager_no from
(select a.employee_no,a.salary,a.manager_no,b.salary manager_salary
from 你的表名 a left outer join 你的表名 b on a.manager_no = b.employee_no) ss
where salary > manager_salary
(select a.employee_no,a.salary,a.manager_no,b.salary manager_salary
from 你的表名 a left outer join 你的表名 b on a.manager_no = b.employee_no) ss
where salary > manager_salary
from MyTable a
where a.manager_no is not null
and a.salary >(select b.salary from MyTable b
where b.employee_no = a.manager_no);