weird sum() results

Поиск
Список
Период
Сортировка
От Hitesh Patel
Тема weird sum() results
Дата
Msg-id 388657C2.2697A6CE@presys.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "gary.wolfe"
Дата:
Сообщение: xml
Следующее
От: "Jeff MacDonald "
Дата:
Сообщение: parser