Folding subtotals into query?

Поиск
Список
Период
Сортировка
От Jerry LeVan
Тема Folding subtotals into query?
Дата
Msg-id FF81597A-9167-11D8-9438-000393779D9C@eku.edu
обсуждение исходный текст
Ответы Re: Folding subtotals into query?  (Eric Ridge <ebr@tcdi.com>)
Список pgsql-general
Is is possible, via some clever sql coding ( perhaps with PL/pgsql)
to get subtotals to appear in a selection, ie

If I have a query: select * from checks order by category
I would like the have the subtotals appear (possibly in
an unused column for each "category" when the category
"breaks".

Basically I would like to meld the query:
select category, sum(amount) from checks group by category order by
category

Into the of the first select.

Thanks,

Jerry


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

Предыдущее
От: Frank Finner
Дата:
Сообщение: Re: Mixed UTF8 / Latin1 database
Следующее
От: Eric Ridge
Дата:
Сообщение: Re: Folding subtotals into query?