#2
apull2021-10-04 19:51
|
只有本站会员才能查看附件,请 登录
1:
select max(Salary) SecondHighestSalary
from employee
where
salary<(select max(salary)from employee)
2:
select max(Salary) SecondHighestSalary
from employee
where
salary<(select max(salary)from employee)<(select min(salary) from employee)
这两种查出来的结果不一样,是哪里有区别,原因又是啥?