Re: COUNT(*) to find records which have a certain number of - Mailing list pgsql-sql

From T E Schmitz
Subject Re: COUNT(*) to find records which have a certain number of
Date
Msg-id 414F1A8B.2080101@numerixtechnology.de
Whole thread Raw
In response to Re: COUNT(*) to find records which have a certain number of  (Rod Taylor <pg@rbt.ca>)
List 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


pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: COUNT(*) to find records which have a certain number of
Next
From: Greg Stark
Date:
Subject: Re: COUNT(*) to find records which have a certain number of dependencies ?