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
SELECT max(salary) FROM employees;
max --------- 6000.00 (1 row)
Sample Database: employee
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?
- New Content published on w3resource :
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework