Re: Indexing UNIONs - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Indexing UNIONs
Date
Msg-id 200207181030.22754.josh@agliodbs.com
Whole thread Raw
In response to Re: Indexing UNIONs  (Bruno Wolff III <bruno@wolff.to>)
List 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 by date:

Previous
From: Robert Treat
Date:
Subject: Re: how do i import my sql query result to a file
Next
From: Ludwig Lim
Date:
Subject: Re: how do i import my sql query result to a file