Skip to content

SOME

SELECT * FROM Employees WHERE SOME (SELECT Salary FROM Employees) > 1000;
EmployeeIdLastNameFirstNameSalary
1SmithJohn2000
2DoeJane1500

The SQL code is selecting all columns from employees where at least one employee’s salary is over 1000. The SOME statement returns true if the condition is true for any pair in the set.