Skip to content

EVERY

  • subquery: This is an SQL statement that yields a result set, to be used by the EVERY function. It should output a single column of Boolean type or a column that can be implicitly converted to Booleans. Depending on the values in this column - TRUE, FALSE or NULL - the EVERY function will return a result accordingly.
SELECT EVERY(age > 20) AS EVERY_Age
FROM Employees;
| EVERY_Age |
|-----------|
| 0 |

In the example provided, the EVERY function is used to check if the age of every employee in the Employees table is greater than 20. The function returns 0, indicating that not every employee’s age is greater than 20.