Re: How to GROUP results BY month

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: How to GROUP results BY month
Дата
Msg-id 20080715123157.GE4099@a-kretschmer.de
обсуждение исходный текст
Ответ на How to GROUP results BY month  ("Oliveiros Cristina" <oliveiros.cristina@marktest.pt>)
Ответы Re: How to GROUP results BY month  (Mark Roberts <mailing_lists@pandapocket.com>)
Список pgsql-sql
am  Tue, dem 15.07.2008, um 13:12:39 +0100 mailte Oliveiros Cristina folgendes:
> Howdy, all,
> 
> I have a problem.
> 
> I have a table which one of the fields is of type date.
> 
> I need to obtain the totals of the other fields in a  by-month basis
> IS there any easy way to do this using the GROUP BY or any other construct?

... group by extract(month from date)


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net


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

Предыдущее
От: "Oliveiros Cristina"
Дата:
Сообщение: How to GROUP results BY month
Следующее
От: Herouth Maoz
Дата:
Сообщение: Re: How to GROUP results BY month