Re: [GENERAL] weird sum() results

From: Hitesh Patel <hitesh(at)pciwest(dot)net>
To: "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] weird sum() results
Date: 2000-01-20 18:03:21
Message-ID: 38874DE9.3226343@pciwest.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I can understand that. What's weird is that I can do a sum(amount) on
the whole table and the value comes out to only My only problem is that
the amount field is the money type and doesn't like the casting now. A

SELECT SUM(amount::float8) FROM table where state = 'CA';

returns

ERROR: No such function 'float8' with the specified attributes

And again i'm stuck :-)

Thanks in advance for any help.
--
|---------------------------------|----------------------------|
| Hitesh Patel | Voice: (541) 759-3126 |
| Facilities Development Manager | Fax: (541) 759-3214 |
| Preferred Systems | Email: hitesh(at)presys(dot)com |
|---------------------------------|----------------------------|

Browse pgsql-general by date

  From Date Subject
Next Message Hitesh Patel 2000-01-20 18:05:15 Re: [GENERAL] weird sum() results
Previous Message Sarah Officer 2000-01-20 17:38:59 psql parsing and variable problems