Re: COUNT(*) to find records which have a certain number of

From: T E Schmitz <mailreg(at)numerixtechnology(dot)de>
To: Rod Taylor <pg(at)rbt(dot)ca>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: COUNT(*) to find records which have a certain number of
Date: 2004-09-20 17:59:39
Message-ID: 414F1A8B.2080101@numerixtechnology.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Greg Stark 2004-09-20 18:32:17 Re: COUNT(*) to find records which have a certain number of dependencies ?
Previous Message Martin Knipper 2004-09-20 16:44:45 Re: COUNT(*) to find records which have a certain number of