Question: Write a SQL query to find the second highest salary from an Employee table.Answer: SELECT MAX(salary) FROM Employee WHERE salary < (SELECT MAX(salary) FROM Employee); |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is SQL?
- What is the difference between SQL and MySQL?
- What is a primary key?
- What is an index in a database?
- What is a foreign key?