From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: Greenhorn <user.postgresql@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: right join problem
Date: Fri, 2 Oct 2009 08:36:06 +0200
Message-ID: <20091002063606.GC22496@a-kretschmer.de> (raw)
In-Reply-To: <ddcb1c340910012253i51b54607v404b5dba260e79f@mail.gmail.com>
References: <ddcb1c340910012233m41f6161kaac483c04ef4b320@mail.gmail.com>
<20091002054548.GB22496@a-kretschmer.de>
<ddcb1c340910012253i51b54607v404b5dba260e79f@mail.gmail.com>
In response to Greenhorn :
> >
> > Use a left join instead?
> Hi,
> Yes, but when i use a where clause on my query it only selects joined
> records. :(
> Thanks.
Please, answer to the list and not directly to me.
The WHERE-Clause works after the JOIN - so your select contains (without
the WHERE) all rows.
Maybe i don't understand you, can you show a simple example with data?
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
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: andreas.kretschmer@schollglas.com, user.postgresql@gmail.com
Subject: Re: right join problem
In-Reply-To: <20091002063606.GC22496@a-kretschmer.de>
* 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