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

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

pgsql-sql by date

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

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