Syntax bug? Group by?

Поиск
Список
Период
Сортировка
От Mark Woodward
Тема Syntax bug? Group by?
Дата
Msg-id 18370.24.91.171.78.1161099298.squirrel@mail.mohawksoft.com
обсуждение исходный текст
Ответы Re: Syntax bug? Group by?  (Stephen Frost <sfrost@snowman.net>)
Re: Syntax bug? Group by?  (Markus Schaber <schabi@logix-tt.com>)
Re: Syntax bug? Group by?  (Peter Eisentraut <peter_e@gmx.net>)
Re: Syntax bug? Group by?  ("Przemek " <krycek6@wp.pl>)
Список pgsql-hackers
Shouldn't this work?

select ycis_id, min(tindex), avg(tindex) from y where ycis_id = 15;

ERROR:  column "y.ycis_id" must appear in the GROUP BY clause or be used
in an aggregate function

If I am asking for a specific column value, should I, technically
speaking, need to group by that column?


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

Предыдущее
От: HS
Дата:
Сообщение: hacking postgres hashjoin algorithm
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: hacking postgres hashjoin algorithm