A select list may combine aggregate results with nonaggregated columns when the nonaggregated columns are grouping expressions. Aggregate-function arguments are expressions and can therefore be column names, calculated expressions, constants, or function results. Oracle documents that aggregate functions operate on groups of rows and that a grouped query's select list can include aggregate functions and GROUP BY expressions.
Community Discussion