pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <rbt@rbt.ca>
To: aicean <aicean@netspeed-tech.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How can I produce the following desired result?
Date: Tue, 14 Oct 2003 22:27:47 -0400
Message-ID: <1066184866.99719.9.camel@jester> (raw)
In-Reply-To: <003401c392c1$86c75660$9e00a8c0@aicean>
References: <003401c392c1$86c75660$9e00a8c0@aicean>

On Tue, 2003-10-14 at 22:09, aicean wrote:
> How can I produce the following desired result?

I'm not sure I understand the problem, but you might want to try a
subselect in the FROM.

SELECT <wanted results>
  FROM table
  JOIN (SELECT goodid
          FROM table
         WHERE <whatever you did to get list of wanted goodid>
       ) AS tab
       USING (goodid)
 WHERE <other clauses>

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (5+ messages)  latest in thread

Message-ID: <1066184866.99719.9.camel@jester>
Permalink:  ../1066184866.99719.9.camel@jester/
Also on:    postgresql.org/message-id/1066184866.99719.9.camel@jester

 · 

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: rbt@rbt.ca, aicean@netspeed-tech.com
  Subject: Re: How can I produce the following desired result?
  In-Reply-To: <1066184866.99719.9.camel@jester>

* 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