Re: [SQL] GROUP BY: v6.1 vs. v6.5.2

Поиск
Список
Период
Сортировка
От Ray Plante
Тема Re: [SQL] GROUP BY: v6.1 vs. v6.5.2
Дата
Msg-id Pine.SGI.4.05.10002011006060.154408-100000@poplar.astro.uiuc.edu
обсуждение исходный текст
Ответ на Re: [SQL] GROUP BY: v6.1 vs. v6.5.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hi Tom,

> What you can do at the moment is
> 
>     select distinct on x  x, y from table;
> 
> This is nonstandard, klugy, and just as unpredictable as the old GROUP
> BY behavior, but you only need an ordering operator on x.

Excellent.  This is just the short-term solution I can use until I work
out a permanent one.  Thanks!

Ray



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] GROUP BY: v6.1 vs. v6.5.2
Следующее
От: "a kj"
Дата:
Сообщение: Hello sir.