Converting money types. - Mailing list pgsql-general

From Craig Anderson
Subject Converting money types.
Date
Msg-id 0104A6DCB4B2D2119660009027BC64510977B3@hpmail.netstatresources.com
Whole thread Raw
List 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.

pgsql-general by date:

Previous
From: "g.p.ciceri"
Date:
Subject: initialization phase for user-defined functions
Next
From: Michelle Murrain
Date:
Subject: pg_dump problems