Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group