Re: [INTERFACES] Min and Max aggregates.

Поиск
Список
Период
Сортировка
От Thomas G. Lockhart
Тема Re: [INTERFACES] Min and Max aggregates.
Дата
Msg-id 366F5DA3.471929A6@alumni.caltech.edu
обсуждение исходный текст
Ответ на Min and Max aggregates.  (John Bosch <jbosch@john.cdscc.nasa.gov>)
Список pgsql-interfaces
> ... the min and max aggregate functions return 0
> if more than one row happens to have the same value in the tested
> column and that value also happens to be the minimum or maximum?

I've not noticed it, and can't reproduce it with a small test case on my
machine. Will need more details to be able to help...

Cheers.

                       - Tom

postgres=> select min(i) from b;
min
---
  1
(1 row)

postgres=> select * from b;
i| k
-+--
1|-1
2|-2
3|-3
2| 4
1| 5
(5 rows)

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

Предыдущее
От: John Bosch
Дата:
Сообщение: Min and Max aggregates.
Следующее
От: Sergio Kessler
Дата:
Сообщение: Re: [INTERFACES] bug in ODBC driver ?