Re: SQL Query Syntax help

Поиск
Список
Период
Сортировка
От Geoff Winkless
Тема Re: SQL Query Syntax help
Дата
Msg-id CAEzk6fcK_FfUC65ZK5QN3o2yG29c0f1-bRpxThtB6x6gGZ6Jfw@mail.gmail.com
обсуждение исходный текст
Ответ на SQL Query Syntax help  ("srikkanth" <srikkanth16081991@rediffmail.com>)
Список pgsql-admin
On Wed, 22 Jan 2020 at 11:00, srikkanth <srikkanth16081991@rediffmail.com> wrote:
Can you please help me in writing the syntax for the below mentioned table.

Suggest looking at the crosstab function.

https://www.postgresql.org/docs/current/tablefunc.html

    crosstab(text source_sql, text category_sql)
    Produces a "pivot table" with the value columns specified by a second query

Geoff

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

Предыдущее
От: "Daniel Verite"
Дата:
Сообщение: Re: SQL Query Syntax help
Следующее
От:
Дата:
Сообщение: pg_rewind