The WHERE filter usually
follows a link name to select
related objects connected via that link. However, a link path can
begin when a
WHERE filter, in which case it selects
perspective objects. For example:
This WHERE filter selects perspective objects, in this case
Person. The query above is identical to the following:
The scope of an outer
WHERE filter remains at the perspective object. Hence, multiple, outer
WHERE filters can be chained together as in the following example:
The outer WHERE filters are AND-ed together, so the example above is identical to this query:
Outer WHERE filters allow aliases to be defined as link paths that can be used in multiple contexts. For example, assume the following alias is defined:
The alias $SalesPeople can be used as a selection expression or link filter whenever the expression scope is
Person. For example, the alias can be used in the following queries:
Outer WHERE filters can also be used in aggregate query metric functions and grouping parameters (described elsewhere).