+----+-------+--------+-----------+|Id|Name|Salary|ManagerId|+----+-------+--------+-----------+|1|Joe|70000|3||2|Henry|80000|4||3|Sam|60000|NULL||4|Max|90000|NULL|+----+-------+--------+-----------+Employee表中,ManagerId为空的是经理,找出薪水高于经理的雇员名字。我使用:selects.NamefromEmployeesjoinEmployeeions.ManagerId=i.Idwheres.Salary>i.Salary;这样写,有更好的写法吗?
慕沐林林
相关分类