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

Hi Rod,

Rod Taylor wrote:

> 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 ...

That does the trick. You're a genius ;-)

-- 


Regards/Gruß,

Tarlika



view thread (16+ messages)  latest in thread

Message-ID: <414F1A8B.2080101@numerixtechnology.de>
Permalink:  ../414F1A8B.2080101@numerixtechnology.de/
Also on:    postgresql.org/message-id/414F1A8B.2080101@numerixtechnology.de

 · 

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: mailreg@numerixtechnology.de, pg@rbt.ca
  Subject: Re: COUNT(*) to find records which have a certain number of
  In-Reply-To: <414F1A8B.2080101@numerixtechnology.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