Subquery in WHERE clause

suggest change

Use a subquery to filter the result set. For example this will return all employees with a salary equal to the highest paid employee.

SELECT *
FROM Employees
WHERE Salary = (SELECT MAX(Salary) FROM Employees)

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Subqueries:
*Subquery in WHERE clause

Table Of Contents