weird sum() results - Mailing list pgsql-general

From Hitesh Patel
Subject weird sum() results
Date
Msg-id 388657C2.2697A6CE@presys.com
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: "gary.wolfe"
Date:
Subject: xml
Next
From: "Jeff MacDonald "
Date:
Subject: parser