Joe Celko's SQL for Smarties: Advanced SQL Programming, Third Edition

The IN() predicate is very natural. It takes a value and sees whether that value is in a list of comparable values. Standard SQL allows value expressions in the list, or for you to use a query to construct the list. The syntax is:
::= [NOT] IN
::= (
) ::= {
}...
The expression
The expression
IN() predicates with a subquery can sometimes be converted into EXISTS predicates, but there are some problems and differences in the predicates. The conversion to an EXISTS predicate is often a good way...