DEV Community

Discussion on: Simple SQL Tutorial: How to Pivot

Collapse
 
j1cordingley profile image
JCord

I use pivots and unpivots a lot.

Thing to note
You showed this but did not mention it, You must use brackets around the value within the in :[value to pivot]

Also is if the results are shown on different rows it becomes of a column not in pivot is different

Unpivot are also great to use