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

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

pgsql-hackers by date

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

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