SOME | ANY
comparison against any subquery value (SOME = ANY)
What changes
- Input
- outer row value and a subquery result
- Output or change
- TRUE, FALSE or UNKNOWN per outer row
Syntax at a glance
scalar_expression { = | <> | != | > | >= | !> | < | <= | !< } { SOME | ANY } ( subquery )
Work example
A report needs SOME | ANY to define which rows satisfy a compound search condition.
Test a match, a nonmatch, and NULL. Write the expected TRUE, FALSE, or UNKNOWN result before running the filter.
Check your work SOME | ANY. The rows kept by SOME | ANY are exactly those whose complete condition evaluates to TRUE.
Open Microsoft Learn for full syntax, permissions, and details for your version.