Subject | Re: Execute Statement Problem |
---|---|
Author | Rick Roen |
Post date | 2005-12-21T12:45:31Z |
>(id.AMOUNT) '
> sqlstring = 'select m.DESCRIPTION, t.CODE, c.CODE, sum(id.QTY), sum
> || 'from INVOICE i ' ||Try casting: CAST(sum(id.Qty) as Integer), Cast(sum(id.Amount) as
> 'inner join INVOICE_DETAIL id on id.INVOICE_ID =
>i.ID
>into :DESCRIPTION, :TARIFF_CODE, :COUNTRY_CODE, :QTY, :INVOICE_AMOUNT
integer).
Maybe these fields are getting converted into another type when they
summed.
Rick