pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <pg@rbt.ca>
To: mailreg@numerixtechnology.de
Cc: pgsql-sql@postgresql.org
Subject: Re: COUNT(*) to find records which have a certain number of
Date: Mon, 20 Sep 2004 12:31:36 -0400
Message-ID: <1095697895.86376.3.camel@jester> (raw)
In-Reply-To: <414F02FF.8000603@numerixtechnology.de>
References: <414F02FF.8000603@numerixtechnology.de>

On Mon, 2004-09-20 at 12:19, T E Schmitz wrote:
> I figured it eventually. (The only thing I don't know is where to put
> the ORDER BY.)

Try this:
        
        SELECT brand_name, model_name
          FROM (SELECT ... INTERSECT SELECT ...) AS t
        ORDER BY ...




view thread (16+ messages)  latest in thread

Message-ID: <1095697895.86376.3.camel@jester>
Permalink:  ../1095697895.86376.3.camel@jester/
Also on:    postgresql.org/message-id/1095697895.86376.3.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: pg@rbt.ca, mailreg@numerixtechnology.de
  Subject: Re: COUNT(*) to find records which have a certain number of
  In-Reply-To: <1095697895.86376.3.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