Re: FULL JOIN is only supported with merge-joinable join conditions

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: FULL JOIN is only supported with merge-joinable join conditions
Date: 2007-05-21 08:56:33
Message-ID: f2rq51$26g9$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I think the way to get the result you want is to suppress the
> null-containing rows before they get to the FULL JOIN, like so:
>
> regression=# SELECT *
> FROM (SELECT * FROM iandmed WHERE ametikoht IS NOT NULL) AS iandmed
> FULL JOIN koosseis ON iandmed.ametikoht=koosseis.ametikoht;

Thank you.
In my case koosseis.ametikoht column does not contain null values.
Si I fixed this in WHERE clause

WHERE (iandmed.ametikoht is not null or koosseis.ametikoht is not null)

I hope this produces same result in my case.

Andrus.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2007-05-21 09:42:12 Re: TSearch2 memory usage
Previous Message Andrus 2007-05-21 08:39:43 Re: How to implement GOMONTH function