Detailed_SQL_Sample_Questions
Detailed_SQL_Sample_Questions
To get the second highest salary, you can use a subquery to find the max salary less than the highest:
SELECT MAX(salary) FROM Employee WHERE salary < (SELECT MAX(salary) FROM Employee);
SELECT * FROM Employee WHERE join_date >= CURRENT_DATE - INTERVAL '3 months';
SELECT * FROM (
FROM Employee