select e.id, e.name, e.salary
from employee e
where salary > (select salary from employee a where a.employee.id = 105)
from employee e
where salary > (select salary from employee a where a.employee.id = 105)
本文提供了一个SQL查询案例,展示了如何从员工表中选取薪资高于特定员工薪资的记录。具体操作包括使用子查询来获取指定员工的薪资,并以此为基准筛选出符合条件的其他员工信息。
3284

被折叠的 条评论
为什么被折叠?