Tags / unpivot
Using SQL and UNION ALL to Aggregate Data from Multiple Columns
Unpivoting Holiday Hours in SQL Server Using Dynamic SQL and Table-Valued Functions
Constructing a New Table by Aggregating Values in One Table: A Comprehensive Guide to Calculating Purchase Rates
Calculating the Difference between Two Averages in PostgreSQL: A Step-by-Step Guide to Efficient Data Analysis and Manipulation