For more information, see:
- PIVOT
- "TD_UNPIVOT" in Teradata Vantage™ - SQL Operators and User-Defined Functions, B035-1210