Re: histogram

Поиск
Список
Период
Сортировка
От Joel Reymont
Тема Re: histogram
Дата
Msg-id C5E3EF26-9675-4482-9249-68CF377A33BC@gmail.com
обсуждение исходный текст
Ответ на Re: histogram  (Thomas Markus <t.markus@proventis.net>)
Список pgsql-general
Thank you Thomas!

Is there a way for the code below to determine the number of rows in the table and use it?

    Thanks, Joel

On Apr 30, 2011, at 5:48 PM, Thomas Markus wrote:

> Hi,
>
> try something like this:
>
> select
>    trunc(random() * 10.)/10.
>    , count(*)
> from
>    generate_series(1,2000000)
> group by 1 order by 2

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------




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

Предыдущее
От: Thomas Markus
Дата:
Сообщение: Re: histogram
Следующее
От: Joel Reymont
Дата:
Сообщение: Re: histogram