pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: andre.toscano <andre.toscano@uol.com.br>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Aggregate like AVG() with Money Data Type
Date: Tue, 9 Nov 2004 18:33:01 -0700
Message-ID: <20041110013301.GA52476@winnie.fuhr.org> (raw)
In-Reply-To: <I6XIS5$2B74AD5585A604C430BDE3D6A46CE476@uol.com.br>
References: <I6XIS5$2B74AD5585A604C430BDE3D6A46CE476@uol.com.br>

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/



view thread (2+ messages)

Message-ID: <20041110013301.GA52476@winnie.fuhr.org>
Permalink:  ../20041110013301.GA52476@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20041110013301.GA52476@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, andre.toscano@uol.com.br
  Subject: Re: Aggregate like AVG() with Money Data Type
  In-Reply-To: <20041110013301.GA52476@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox