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

Поиск
Список
Период
Сортировка
От Jackson, DeJuan
Тема RE: [HACKERS] Should the following work...?
Дата
Msg-id D05EF808F2DFD211AE4A00105AA1B5D2037A50@cpsmail
обсуждение исходный текст
Ответы RE: [HACKERS] Should the following work...?  (The Hermit Hacker <scrappy@hub.org>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] vacuum updated...
Следующее
От: Andrew Merrill
Дата:
Сообщение: Re: [SQL] indexing a datetime by date