Skip to main content

Basic aggregations based on groups of values

Calculates the mathematical aggregations for any given different o_name value.

Using the aggregation as a subquery

Returns the row with the highest o_totalprice.

Using the aggregation with no GROUP BY column

Calculate the total profit of all the different transactions.

Count by distinct column or expression