weird sum() results

Поиск
Список
Период
Сортировка
От Hitesh Patel
Тема weird sum() results
Дата
Msg-id 38865574.1464E648@pciwest.net
обсуждение исходный текст
Список pgsql-general
I have a table with a filed named 'amount' and all the values are
positive values, but if i do this:

    select sum(amount) from table where state = 'CA';

I get a negative number.  Doing a

    select name, amount from table where state = 'CA' and amount < '0';

Returns 0 rows.  Any ideas as to why i'm getting a negative value for
the sum()?

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

Предыдущее
От: "Ing. Roberto Andrade Fonseca"
Дата:
Сообщение: Benchmarks for pgsql?
Следующее
От: "gary.wolfe"
Дата:
Сообщение: xml