📜  mysql代码示例中的第二高薪水

📅  最后修改于: 2022-03-11 15:05:28.100000             🧑  作者: Mango

代码示例3
#Corelated Subquery
SELECT Id, Salary
FROM Employee e
WHERE 2=(SELECT COUNT(DISTINCT Salary) FROM Employee p
WHERE e.Salary<=p.Salary)