Restrictions on Using a Value Expression

A value expression can be composed of any of the items described in Value Expression, but with the following restrictions:

Expressions are parsed into a tree for processing. If you reach the expression depth limit, consider using parentheses to reduce the depth of your expression

For information about the limitations of using value expressions that are aggregate functions, see the section on "Aggregate Functions" in Functions Used in The Select List .