Re: How to return a jsonb list of lists (with integers)

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: How to return a jsonb list of lists (with integers)
Дата
Msg-id CAKFQuwYgHf=fUbQ-js1Xk5h=E7v_FSwuVyG+eD_JAp=mcPsqaQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to return a jsonb list of lists (with integers)  (Alexander Farber <alexander.farber@gmail.com>)
Ответы Re: How to return a jsonb list of lists (with integers)  (Alexander Farber <alexander.farber@gmail.com>)
Список pgsql-general
On Tuesday, February 16, 2021, Alexander Farber <alexander.farber@gmail.com> wrote:
But is it possible in SQL to combine all 3 queries, so that a JSONB list of lists is returned?
So I have to use PL/PgSQL, correct?

With liberal usage of CTEs and subqueries writing a single SQL query should be doable.

David J.

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

Предыдущее
От: Alexander Farber
Дата:
Сообщение: Re: How to return a jsonb list of lists (with integers)
Следующее
От: Ron
Дата:
Сообщение: Re: Order by not working