FAANG Questions

Amazon / Meta

Second Highest Salary

Write a SQL query to find the second highest salary from the employees table. If there is no second highest salary, return NULL.

Schema: Table: employees (id INT, name TEXT, department TEXT, salary INT)
interview_solution.sql — Second Highest Salary
Output Grid
Run your query or click "Submit & Verify" to test your solution.