Re: Outer joins

From: Emils <gnudiff(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Outer joins
Date: 2006-04-29 08:33:00
Message-ID: 9dcb6fa40604290133l47b67930n@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

(damn gmail, sorry about priv mail earlier)

> Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>:
> I think putting a test in an ON clause associated with the join (using
> something like ... left join object_values ov1 ON(ov.obj_id = ov1.obj_id
> and ov1.att_id=8) rather than where will consider both as part of the join
> and null extend even if there are obj_id matches if none of those have
> att_id=8.

Thanks, that worked!

2006/4/28, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> Emils <gnudiff(at)gmail(dot)com> writes:
> > The table structure is:
>
> > object_values
> > ==========
> This isn't an outer-join problem, it's a crosstab problem. Try the
> crosstab functions in contrib/tablefunc.
>

Thanks, I looked into it, unfortunately I might have to have also a
solution for where installing contrib stuff is not possible.

Emils

Browse pgsql-sql by date

  From Date Subject
Next Message Marc G. Fournier 2006-04-29 17:33:00 Ignore, test of an alias
Previous Message Ben K. 2006-04-29 06:50:49 Re: LinkedList