Write an SQL query to retrieve the highest salary from the "employees" table.

Last Updated :
Discuss
Comments

Write an SQL query to retrieve the highest salary from the "employees" table.

SELECT TOP 1 salary FROM employees ORDER BY salary DESC;

SELECT salary FROM employees WHERE salary = MAX(salary);

SELECT salary FROM employees ORDER BY salary DESC LIMIT 1;

SELECT MAX(salary) FROM employees;

Share your thoughts in the comments