RE: [HACKERS] Should the following work...?

From: "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com>
To: The Hermit Hacker <scrappy(at)hub(dot)org>, pgsql-hackers(at)postgreSQL(dot)org
Subject: RE: [HACKERS] Should the following work...?
Date: 1999-03-30 17:42:21
Message-ID: D05EF808F2DFD211AE4A00105AA1B5D2037A50@cpsmail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> select id
> from clients
> where id = ( select id
> from clients
> where count(id) = 1 ) ;
> The error I get is that you can't do the AGGREGATE int he
> WHERE clause,
> but this is with a pre-v6.5 server too...technically, should
> the above be
> possible?
I believe instead of WHERE that should be a HAVING clause.
But I'm not sure PostgreSQL can handle a HAVING in a sub-select.

-DEJ

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Merrill 1999-03-30 18:11:19 Re: [SQL] indexing a datetime by date
Previous Message The Hermit Hacker 1999-03-30 17:38:21 Re: [HACKERS] vacuum updated...