programming-examples/sql/SubqueriesHRDatabase/Write a query to display all the information of the employees whose salary if within the range of smallest salary and 2500.sql
2019-11-18 14:05:53 +01:00

7 lines
259 B
SQL

/*Write a query to display all the information of the employees whose salary if within the range of smallest salary and 2500*/
SELECT *
FROM employees
WHERE salary BETWEEN
(SELECT MIN(salary)
FROM employees) AND 2500;