I have a table like:
YEAR_WEEK | CHANNEL_A | CHANNEL_B | CHANNEL_C | ... |
---|---|---|---|---|
2022-11 | 40 | 10 | 5 | ... |
2022-12 | 50 | 20 | 6 | ... |
2022-13 | 60 | 30 | 7 | ... |
I need to pivot the data, so that the table is shown as:
CHANNEL | 2022-11 | 2022-12 | 2022-13 | ... |
---|---|---|---|---|
CHANNEL_A | 40 | 50 | 60 | ... |
CHANNEL_B | 10 | 20 | 30 | ... |
CHANNEL_C | 5 | 6 | 7 | ... |
Problem is that my database has no PIVOT() function. I found this guide (https://docs.exasol.com/db/latest/migration_guides/oracle/execution/sqltranslationguidelines.htm), showing how to rebuild the PIVOT() function from Oracle in Exasol but I don't understand it nor can I successfully apply it to my table.