pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Patrik Kudo <kudo@pingpong.net>
To: Marco Roda <MarcoRoda@amdosoft.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: OUTER JOIN
Date: Thu, 17 Apr 2003 16:37:41 +0200
Message-ID: <3E9EBC35.9020904@pingpong.net> (raw)
In-Reply-To: <000701c304ed$d78ba7c0$0301a8c0@amdosoft.local>
References: <000701c304ed$d78ba7c0$0301a8c0@amdosoft.local>

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
> 




view thread (7+ messages)  latest in thread

Message-ID: <3E9EBC35.9020904@pingpong.net>
Permalink:  ../3E9EBC35.9020904@pingpong.net/
Also on:    postgresql.org/message-id/3E9EBC35.9020904@pingpong.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: kudo@pingpong.net, MarcoRoda@amdosoft.com
  Subject: Re: OUTER JOIN
  In-Reply-To: <3E9EBC35.9020904@pingpong.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox