Understanding the ANY and ALL Comparison Modifiers

When you use a Where or Having clause to create a subquery that returns zero to many values, you modify a comparison operator (such as equal to, less than, greater than) with the ANY or ALL comparison modifiers. Consider the following two examples:

Problems arise with ANY and ALL in the following two cases: