Write a SQL query to get the second highest salary from the
de >Employee
de>
table.
+----+--------+ | Id | Salary | +----+--------+ | 1 | 100 | | 2 | 200 | | 3 | 300 | +----+--------+
For example, given the above Employee table, the query should return
+---------------------+ | SecondHighestSalary | +---------------------+ | 200 | +---------------------+
# Write your MySQL query statement below max()应用
select max(salary) as SecondHighestSalary from Employee
where salary<(select max(salary) from Employee);