Converting money types.

From: Craig Anderson <craig(at)netstatresources(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Converting money types.
Date: 2000-09-27 19:52:51
Message-ID: 0104A6DCB4B2D2119660009027BC64510977B3@hpmail.netstatresources.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I have the following statement... select sum(p.priprice *
o.quantity) as total from products p, ordertemp o where o.orderid='xxxx' and
o.itemid=p.itemid; This statement returns something like $x,xxx.xx.

The column p.priprice is of type money and o.quantity is of type
int4. Is there any way to modify that statement to return something like
xxxx.xx?

Craig Anderson
Director of Internet Services
Netstat Resources, LLC.

Browse pgsql-general by date

  From Date Subject
Next Message Poul L. Christiansen 2000-09-27 20:11:26 full text indexing
Previous Message g.p.ciceri 2000-09-27 19:40:22 initialization phase for user-defined functions