Skip to content

WHERE

SELECT *
FROM Employees
WHERE salary > 50000;
| employee_id | first_name | last_name | position | hire_date | salary |
|-------------|------------|-----------|-----------|------------|--------|
| 2 | John | Smith | Developer | 2018-06-10 | 60000 |
| 5 | Jane | Doe | Manager | 2017-01-15 | 75000 |

In the above example, WHERE clause is used to filter records. It extracts only those employees from the Employees table whose salary is greater than 50000. All columns of the filtered records are returned and displayed.