From: Rodrigo De León <rdeleonp@gmail.com>
To: Koen Bok <koen@madebysofa.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Simple Query?
Date: Tue, 11 Sep 2007 16:46:17 -0500
Message-ID: <a55915760709111446k78a7f254x65606ee2736959b@mail.gmail.com> (raw)
In-Reply-To: <2C0EA394-5AC8-4FC8-99F3-5FAEE9720360@madebysofa.com>
References: <2C0EA394-5AC8-4FC8-99F3-5FAEE9720360@madebysofa.com>
On 9/11/07, Koen Bok <koen@madebysofa.com> wrote:
> Anyone has a hint?
Another way:
SELECT i.*
FROM item i JOIN search_item s1 ON i.ID = s1.id_item
JOIN search_item s2 ON s1.id_item = s2.id_item
JOIN search_item s3 ON s2.id_item = s3.id_item
WHERE s1.id_search = 1
AND s2.id_search = 2
AND s3.id_search = 3
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: rdeleonp@gmail.com, koen@madebysofa.com
Subject: Re: Simple Query?
In-Reply-To: <a55915760709111446k78a7f254x65606ee2736959b@mail.gmail.com>
* 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