Write a SQL query to find the second-highest salary from an employee table. The table has a column named 'salary' containing integer values. Assume there are at least two distinct salary values in the table.
Input: Employee table with salaries: [100, 200, 300]
Output: 200
Explanation: The distinct salaries are 100, 200, and 300. The second-highest salary is 200.
Input: Employee table with salaries: [500, 500, 400]
Output: 400
Input: Employee table with salaries: [1000, 800, 800, 600]
Output: 800
Your notes are automatically saved in your browser's local storage and will persist across sessions on this device.