Re: Need help with INNER Join

From: Emil Obermayr <nobs(at)nobswolf(dot)info>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Need help with INNER Join
Date: 2008-05-04 14:52:13
Message-ID: 200805041652.13785.nobs@nobswolf.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Am Sonntag, 4. Mai 2008 schrieb Mag Gam:

> To my understanding, it is preferred to use the INNER JOIN keyword. I am
> able to INNER JOIN 2 tables, but I am not sure of the syntax for 3 or more
> tables. Can someone please show me an example for that ?

Just concatenate the joins, modern servers do not need hints by brackets and
such:

select * from a join b on a.id=b.aid join c on b.id=c.bid ;

In that respect, also take a look on "join using" and "natural join".

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Frank Bax 2008-05-04 14:52:38 Re: Need help with INNER Join
Previous Message Mag Gam 2008-05-04 14:40:05 Need help with INNER Join