Subject | Re: [ib-support] Wierd math??? |
---|---|
Author | Joe Martinez |
Post date | 2003-02-21T08:16:28Z |
>what firebird/interbase version and what client tool/component set are youFB 1.0, and IBObjects
>using ?
>what is the data type of your txamount column ?Double Precision
>what happens if you explicitly cast your SUM statement ?That gives an error (invalid column reference), but this:
>
>select CAST(sum(txamount) AS Decimal(9,2)) from laytransactions where
>layid = 5
select sum(cast (txamount AS Decimal(9,2))) from laytransactions where
layid = 5
works perfectly.
-Joe