Re: joins?

From: "Gregory Wood" <gregw(at)com-stock(dot)com>
To: <davidgn(at)servidor(dot)unam(dot)mx>
Cc: "PostgreSQL-General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: joins?
Date: 2002-03-06 16:57:57
Message-ID: 000f01c1c530$2b08e5b0$7889ffcc@comstock.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Explicit joins allow you to order the joins any way you want. When join
conditions are in the WHERE clause, you don't have any control over the
order in which the tables are joined.

Additionally, when you do an explicit join, you can perform other types of
joins, such as an inner join, outer join, etc.

Personally I prefer doing explicit joins because it makes my SQL more
readable to me; all the glue that joins the tables together is in the FROM,
and the WHERE clause just limits the rows that I want returned.

Greg

----- Original Message -----
From: "David Eduardo Gomez Noguera" <davidgn(at)servidor(dot)unam(dot)mx>
To: "postgres" <pgsql-general(at)postgresql(dot)org>
Sent: Wednesday, March 06, 2002 10:40 AM
Subject: [GENERAL] joins?

> Hello.
> I am a bit new to databases. just still learning.
> I havent got it right, but wht is the difference between a joint and a
where clause?
> specially "join on ".
>
> --
> ICQ: 15605359 Bicho
> =^..^=
> First, they ignore you. Then they laugh at you. Then they fight you. Then
you win. Mahatma Gandhi.
> -------------------------------気検体の一
致------------------------------------
> 暑さ寒さも彼岸まで。
> 恋にししょうなし。恋はしあんの他。
> アン アン アン とっても大好き
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

In response to

  • joins? at 2002-03-06 15:40:40 from David Eduardo Gomez Noguera

Responses

  • Re: joins? at 2002-03-06 17:29:28 from David Eduardo Gomez Noguera

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-03-06 17:06:43 Re: Problems with unconstrained join
Previous Message Thomas Lockhart 2002-03-06 16:35:51 Re: Mandrake RPMs rebuilt