Home » Posts tagged 'aggregate functions'
Tag Archives: aggregate functions
More About PIVOT Queries
An earlier post introduced the PIVOT feature in Oracle’s 11g2 SQL, and described the motivation for pivoting. This one explores a few more complex ways to use pivot queries. We’ll look at:
• Multiple Pivot Columns
• Multiple Aggregate Functions
• Multiple Pivot Columns
• Multiple Aggregate Functions
within the same SQL statement and we’ll see a few errors which commonly arise when building more complex pivot queries like these. Finally, we’ll consider: why would one have a need to UNPIVOT? Continue…