# #176 Second Highest Salary

#### [https://leetcode.com/problems/second-highest-salary/](https://leetcode.com/problems/second-highest-salary/)

{% tabs %}
{% tab title="MS SQL Server" %}
```sql
SELECT ISNULL(
    (SELECT DISTINCT Salary
    FROM Employee
    ORDER BY Salary DESC
    OFFSET 1 ROWS
    FETCH NEXT 1 ROWS ONLY), null
) AS SecondHighestSalary;
```
{% endtab %}
{% endtabs %}
