w3resource
SQL exercises

SQL exercises on employee Database: Find the highest salary from all the employees

SQL employee Database: Exercise-90 with Solution

[An editor is available at the bottom of the page to write and execute the scripts.]

90. Write a query in SQL to find the highest salary from all the employees.

Sample table: employees


Sample Solution:

SELECT max(salary)
FROM employees;

Sample Output:

   max
---------
 6000.00
(1 row)

Practice Online


Sample Database: employee

employee database structure

Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: Write a query in SQL to list the employee id, name, salary, and department id of the employees in ascending order of salary who works in the department 1001.
Next: Write a query in SQL to find the average salary and average total remuneration(salary and commission) for each type of job.

What is the difficulty level of this exercise?