Re: Indexing UNIONs

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Indexing UNIONs
Дата
Msg-id 200207181030.22754.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Indexing UNIONs  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-sql
Bruno,

> My suggestion:
> SELECT t3.id, coalesce(t1.name, t2.name), t1.abbreviation,
>   coalesce(t1.juris_id, t2.juris_id) from
>   (t3 left join t1 using (id)) left join t2 using (id);

Cool!   I didn't think of that.   I'll give it a try.

-Josh



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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: how do i import my sql query result to a file
Следующее
От: Ludwig Lim
Дата:
Сообщение: Re: how do i import my sql query result to a file