Summarizing or Aggregating Values Using Custom Expressions
In addition to using
For example, in the titles
table you might want to create a query that shows not just the average price, but what the average price would be if it were discounted.
You cannot include an
To specify a custom expression for a summary value
- Specify the groups for your query. For details, see Grouping Rows in Query Results.
- Move to a blank row of the Grid Pane, and then type the expression in the Columns column.
The Query Designer automatically assigns a column
alias to the expression to create a useful column heading in query output. For more details, see Creating Column Aliases. - In the Group By column for the expression, select Expression.
See Also
Counting Rows in a Table | Summarizing Values for All Rows in a Table | Summary and Grouping Behavior in the Query Designer