Re: converting Informix outer to Postgres - Mailing list pgsql-general

From H.J. Sanders
Subject Re: converting Informix outer to Postgres
Date
Msg-id GMEAJIDMNDKCIHMMHDFLGEDGEJAA.hjs@rmax.nl
Whole thread Raw
In response to Re: converting Informix outer to Postgres  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Hi.

From some documentation:

In INFORMIX SQL, outer tables are defined in the FROM clause with the OUTER keyword :

    SELECT ... FROM a, OUTER(b)
     WHERE a.key = b.akey

    SELECT ... FROM a, OUTER(b,OUTER(c))
     WHERE a.key = b.akey
       AND b.key1 = c.bkey1
       AND b.key2 = c.bkey2

PostgreSQL 7.1 supports the ANSI outer join syntax :

    SELECT ... FROM cust LEFT OUTER JOIN order
                         ON cust.key = order.custno

    SELECT ...
      FROM cust LEFT OUTER JOIN order
                     LEFT OUTER JOIN item
                     ON order.key = item.ordno
                ON cust.key = order.custno
     WHERE order.cdate > current date







Any help?

Henk


> -----Oorspronkelijk bericht-----
> Van: pgsql-general-owner@postgresql.org
> [mailto:pgsql-general-owner@postgresql.org]Namens Martijn van Oosterhout
> Verzonden: woensdag 8 november 2006 11:42
> Aan: gurkan@resolution.com
> CC: pgsql-general@postgresql.org
> Onderwerp: Re: [GENERAL] converting Informix outer to Postgres
>
>
> On Tue, Nov 07, 2006 at 06:35:05PM -0500, gurkan@resolution.com wrote:
> > Hi all,
> > I have been working on this Informix SQL query which has an outer join.
> > I have attached Informix query and my "supposedly" solution to this query
> > but I cannot get the same count. I appreciate for any help.
> > Thanks.
>
> I don't know what the Informix outer join is, but is it like the SQL
> FULL OUTER JOIN? Have you tried using that?
>
> Have a nice day,
> --
> Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> > From each according to his ability. To each according to his ability to litigate.
>

pgsql-general by date:

Previous
From: "redhog"
Date:
Subject: Re: Stable sort?
Next
From: "Gregory S. Williamson"
Date:
Subject: Re: converting Informix outer to Postgres