Re: Return select statement with sql case statement

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Return select statement with sql case statement
Дата
Msg-id CAKFQuwaWMpto-UNT3mBWz3KCzRBu0gP5e--P6xKfc4Od+b5_ow@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Return select statement with sql case statement  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-general
On Wednesday, July 4, 2018, Ron <ronljohnsonjr@gmail.com> wrote:
Ah, didn't notice that.  Then... dynamic sql constructed by the programming language executing the query?

That, the UNION idea, or pull the common stuff into the from clause and write two left joins then coalesce whichever one provided the row.  In short, the OP cannot do what they thought they needed to do but hasn't really provided any info for others to make alternative suggestions.

David J. 

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

Предыдущее
От: Melvin Davidson
Дата:
Сообщение: Re: Cloning schemas
Следующее
От: Łukasz Jarych
Дата:
Сообщение: Re: Cloning schemas