weird sum() results - Mailing list pgsql-general

From Hitesh Patel
Subject weird sum() results
Date
Msg-id 38865574.1464E648@pciwest.net
Whole thread Raw
List 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 by date:

Previous
From: "Ing. Roberto Andrade Fonseca"
Date:
Subject: Benchmarks for pgsql?
Next
From: "gary.wolfe"
Date:
Subject: xml