Creating nested queries
A nested query is a query that is placed inside another
query in a template. To nest queries, assign them to child elements.
About this task
- Context: When you drag a query to nest into another,
in the Select Context window, you select a query
that is a parent of the query you are nesting. Both queries must be
from the same data source, have compatible data source schemas, and
placed in template elements that are also physically nested in the
same order. Example: /Query1/Query2/Query3 can
be nested into /Query1/Query2 because /Query1/Query2 is
the parent of /Query1/Query2/Query3.

- Placement: When you drag a query to nest into another,
in the Select Context window, you select none or
you select a query that is not a parent of the query you are nesting.
For example, you can nest a query into a query from a different data
source. In this case, you would not select a query from the same data
source because its context would not match.
