DEV Community

[Comment from a deleted post]
Collapse
 
peledzohar profile image
Zohar Peled

Pivot/Unpivot. My only use for these are when I answer Stackoverflow questions, so I can never remember how to do it correctly.

Collapse
 
helenanders26 profile image
Helen Anderson

Since moving to Postgres I've been using the crosstab function to do pivoting. Have you given it a try?

Collapse
 
peledzohar profile image
Zohar Peled

In my workplace we're using SQL Server, I'm not familiar with Postgres nor am I aware of crosstab function, so the answer is no, but I will check it out...

 
geraldew profile image
geraldew

If you're a Microsoft shop then MS Access has a "crosstab" query (and has done since v1.0 if memory serves).