Using the WITH clause, you can specify all Pivot columns using an asterisk (*) or a subset of columns on which the aggregation function needs to perform.
- aggr_fn
- An aggregate function.
- column_list
- A list of one or more columns. If the list contains more than one column, separate them with commas.
- *
- Option to include all the Pivot columns without specifying columns explicitly.
- alias
- Name of the aggregate result column.