-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Boa tarde!

É sim!

select date_part('month',data) from <tabela> where data >= 01/01/2015
and data <= 30/09/2015 group by date_part('month',data)


http://pgdocptbr.sourceforge.net/pg82/functions-datetime.html

Att.
Em 26-10-2015 16:06, Danilo Silva escreveu:
> Pessoal,
>
> É possível extrairmos os meses de um período de datas? Por exemplo:
período 01/01/2015 a 30/09/2015, extrair os mesmo
01,02,03,04,05,06,07,08,09.
>
> []s
> Danilo
>
>
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral


- -- 
Paz e Bem!
Alcione Ferreira
Sombra®
101080
[http://www.alcionesytes.net/]
- ------------------------------------------------
Liberdade e conhecimento ao alcance de todos.

Office Escritório - http://www.libreoffice.org/
Navegador Firefox - http://www.mozilla.org.br/
Email Thunderbird - http://www.mozilla.org.br/
- ---------------------------------------------------------------
Linux user number 432030 of http://counter.li.org/
- ---------------------------------------------------------------
ICQ: 377035698
Jabber: [email protected]
MSN: [email protected]
- ---------------------------------------------------------------
Curriculum: http://lattes.cnpq.br/0545256741852110
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlYugacACgkQ3m8gMw0vje9SagCfT3efilp8Ta1/qLV0aoaJwgFm
dNUAoIp6L4VflgHsu515xoJaoPMwo7yr
=1E3F
-----END PGP SIGNATURE-----

Attachment: 0x0D2F8DEF.asc
Description: application/pgp-keys

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a