Write a SQL query to get the second highest salary from the Employee table.
| Id | Salary | | 1 | 100 | | 2 | 200 | | 3 | 300 | <
You can use RANK() function to rank the values for Salary column.
SELECT * FROM ( SELECT *, RANK()OVER(ORDER BY Salary DESC) As SalaryRank FROM Employee ) AS Tab WHERE SalaryRank = 2