Re: stddev returns 0 when there is one row

Поиск
Список
Период
Сортировка
От nolan@celery.tssi.com
Тема Re: stddev returns 0 when there is one row
Дата
Msg-id 20030419205441.22967.qmail@celery.tssi.com
обсуждение исходный текст
Ответ на stddev returns 0 when there is one row  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
> So I'd take it that PostgreSQL's STDDEV implements STDDEV_POP.

A simple test (3 rows, values 1, 2, and 3) shows that pgsql uses the
sample (N-1) formulas for variance and standard deviation, not the
population (N) formulas.

Oracle, which also implements the sample formulas, specifically defines
the variance to be 0 when there is just one row.
--
Mike Nolan


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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: 7.3 PDF documentation
Следующее
От: Patrick Welche
Дата:
Сообщение: Re: explain ?