I’m running HSQLDB. Trying to run an UNPIVOT but it doesn’t seem to recognize FOR as a function term. Here’s what I have.
SELECT Fairways, Course, Hole
UNPIVOT (Fairways FOR Hole IN (F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18)
) AS Pivot Example
FOR appears in green not blue. Is there a different term I should be using? Right now I have Columns F1:F18 with a YES or NO as the data. I want to change that so I Have a column named Fairways that has F1:F18 as rows.