The ANY and ALL operators allow you to perform a comparison between a single column value and a range of other values.
Note: The operator must be a standard comparison operator (=, <>, !=, >, >=, <, or <=).
Below is a selection from the "Products" table in the Northwind sample database:
The following SQL statement lists the ProductName if it finds ANY records in the OrderDetails table has Quantity equal to 10 (this will return TRUE because the Quantity column has some values of 10):
The following SQL statement lists the ProductName if ALL the records in the OrderDetails table has Quantity equal to 10. This will of course return FALSE because the Quantity column has many different values (not only the value of 10):