Tags / unpivot
Using SQL and UNION ALL to Aggregate Data from Multiple Columns
Dynamic Unpivoting: A Guide to Transforming Tables with Columns of Different Types
Unpivoting Data in Postgres: A Step-by-Step Guide to Getting Multiple Values for One Row
Understanding Dynamic Pivot/Unpivot Count: A Practical Guide to Data Transformation
Calculating the Difference between Two Averages in PostgreSQL: A Step-by-Step Guide to Efficient Data Analysis and Manipulation
Unpivoting Multiple Rows: A Comprehensive Guide to Transforming Rows into Columns in SQL Server