Exercise #7 page 3 |
||
It is possible to use a table join instead of the IN predicate; however, SQL Server builds identical execution plans for both cases.
Queries based on table joins can be an alternative to union queries. For this particular task, such a solution has a less efficient execution plan, but in other cases it may prove to be preferable. Anyway, for learning purposes, it makes sense to try different ways of solving the task, which is left as an exercise to the reader. |