Re: Fwd: TSQL To Postgres - Unpivot/Union All

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Fwd: TSQL To Postgres - Unpivot/Union All
Дата
Msg-id bd9eab6e-7794-9b38-3958-a08d83d15709@gmx.net
обсуждение исходный текст
Ответ на Fwd: TSQL To Postgres - Unpivot/Union All  (Anthony Apollis <anthony.apollis@gmail.com>)
Список pgsql-general
Anthony Apollis schrieb am 20.07.2023 um 14:17:
> Does not give me outputs for columns: Metric and Pricing Channel:
> image.png
>
> What am i doing wrong? Please assist?

UNPIVOT can be done using a LATERAL sub-query with a VALUES clause:

https://blog.sql-workbench.eu/post/unpivot-with-postgres/




В списке pgsql-general по дате отправления:

Предыдущее
От: Geoff Winkless
Дата:
Сообщение: Re: TSQL To Postgres - Unpivot/Union All
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: My 1st JDBC and PostgreSQL