Re: [GENERAL] weird sum() results

Поиск
Список
Период
Сортировка
От Hitesh Patel
Тема Re: [GENERAL] weird sum() results
Дата
Msg-id 38874E5B.8B581733@presys.com
обсуждение исходный текст
Список 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@presys.com  |
|---------------------------------|----------------------------|

В списке pgsql-general по дате отправления:

Предыдущее
От: Hitesh Patel
Дата:
Сообщение: Re: [GENERAL] weird sum() results
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] psql parsing and variable problems