Should the following work...?

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Should the following work...?
Date: 1999-03-30 17:18:17
Message-ID: Pine.BSF.4.05.9903301317110.55565-100000@thelab.hub.org
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?

Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Merrill 1999-03-30 17:25:39 Re: [SQL] indexing a datetime by date
Previous Message Thomas Lockhart 1999-03-30 16:37:50 Re: [HACKERS] Regression failures