Tags / unpivot
Converting Columns to Rows Using SQL Server's CROSS APPLY and VALUES Function
How to Create a Pivot Table in Oracle SQL Without Using Aggregate Functions
Counting Events Across Multiple Columns Without Full Joins or Concatenation
Unpivoting Oracle Tables: A Step-by-Step Guide to Multiple Columns