Subquery in WHERE clause
suggest changeUse 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)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents