Aggregate like AVG() with Money Data Type

Hello Friends

How can I use the aggregate AVG() with a column MONEY?

Thanks in Advance

Andr=E9
(Brazilian User)

____________________________________________________________ ______________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - =C9 gr=E1tis!
http://antipopup.uol.com.br/



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo [at] postgresql.org)
andre.toscano [ Di, 09 November 2004 21:40 ] [ ID #474716 ]

Re: Aggregate like AVG() with Money Data Type

On Tue, Nov 09, 2004 at 06:40:53PM -0200, andre.toscano wrote:

> How can I use the aggregate AVG() with a column MONEY?

The MONEY type has been deprecated since at least PostgreSQL 7.0.
Is there a reason you're not using NUMERIC?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Mike [ Mi, 10 November 2004 02:33 ] [ ID #475253 ]
Datenbanken » comp.databases.postgresql.sql » Aggregate like AVG() with Money Data Type

Vorheriges Thema: COUNT(*) to find records which have a certain number of dependencies?
Nächstes Thema: Drop all indexes of a table w/o knowing the index names