Re: OUTER JOIN

From: Patrik Kudo <kudo(at)pingpong(dot)net>
To: Marco Roda <MarcoRoda(at)amdosoft(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: OUTER JOIN
Date: 2003-04-17 14:37:41
Message-ID: 3E9EBC35.9020904@pingpong.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello

I'd probably write the query something like this:

SELECT ST.id, ST.order_num, ST.from_time, ST.to_time, ST.disabled,
SD.description
FROM shift_type ST LEFT OUTER JOIN shift_desc SD
ON (ST.id = SD.shift_type_id AND SD.app_language_id = 2)
ORDER BY ST.order_num

I haven't tried the query, so I'm not all sure it works though =)

Regards,
Patrik Kudo

Marco Roda wrote:
> Hallo,
>
>
> and here is the SQL for Oracle:
> SELECT ST.id, ST.order_num, ST.from_time, ST.to_time, ST.disabled,
> SD.description
> FROM shift_type ST, shift_desc SD
> WHERE ST.id = SD.shift_type_id(+) AND SD.app_language_id(+) = 2
> ORDER BY ST.order_num
>

In response to

  • OUTER JOIN at 2003-04-17 14:30:06 from Marco Roda

Browse pgsql-sql by date

  From Date Subject
Next Message Rajesh Kumar Mallah 2003-04-17 14:51:28 Re: getting rid of "Adding missing FROM-clause entry...."
Previous Message Marco Roda 2003-04-17 14:30:06 OUTER JOIN