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

From: Rod Taylor <pg(at)rbt(dot)ca>
To: mailreg(at)numerixtechnology(dot)de
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: COUNT(*) to find records which have a certain number of
Date: 2004-09-20 16:31:36
Message-ID: 1095697895.86376.3.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Martin Knipper 2004-09-20 16:44:45 Re: COUNT(*) to find records which have a certain number of
Previous Message Josh Berkus 2004-09-20 16:30:44 Re: Test for file exists?