Re: Full outer join

From: Tim Perdue <tim(at)perdue(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Full outer join
Date: 2001-04-13 13:23:22
Message-ID: 20010413082322.W446@mail.perdue.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, Apr 13, 2001 at 03:02:32AM -0400, Tom Lane wrote:
> Tim Perdue <tim(at)perdue(dot)net> writes:
> > However, I keep getting this error, and I don't know what it means:
> > ERROR: FULL JOIN is only supported with mergejoinable join conditions
>
> Works for me:
>
> regression=# create table stats_http_downloads (day int, filerelease_id int);

create table stats_http_downloads (day int, filerelease_id int,group_id int,
downloads int);

> CREATE
> regression=# create table stats_ftp_downloads (day int, filerelease_id int);

create table stats_ftp_downloads (day int, filerelease_id int,group_id int,
downloads int);

> CREATE
> regression=# SELECT * FROM (stats_http_downloads sh
> regression(# FULL OUTER JOIN stats_ftp_downloads sf USING (day,filerelease_id));
> day | filerelease_id
> -----+----------------
> (0 rows)
>
>
> What version are you using?

That's RC3 and RC1.

I wonder if the problem is because stats_http_downloads and
stats_ftp_downloads both have group_id and downloads, which I don't want to
use as part of the join.

Does it still work with those revised CREATE statements?

Tim

--
Founder - PHPBuilder.com / Geocrawler.com
Lead Developer - SourceForge
VA Linux Systems

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Kyle 2001-04-13 14:58:24 Re: Update
Previous Message Tom Lane 2001-04-13 07:02:32 Re: Full outer join