Unpivot

SQL

SQL - PIVOT and UNPIVOT

PIVOT transforms rows into columns by rotating data around a pivot point. The operation requires three components: an aggregate function, a column to aggregate, and a column whose values become new…

Read more →