Subject | Re: [IBO] Re: Error in calculations SQL |
---|---|
Author | Helen Borrie |
Post date | 2007-01-15T11:48:51Z |
At 09:23 PM 15/01/2007, you wrote:
statement. It is syntactically incorrect for Firebird 2 as it is and
is a source of possible confusion for the IBO parser.
Helen
>I have seen that if you put the sentence between parenthesis this isYou might also consider removing the table alias (LIN) from your
>executed well, but this did not happen to me with version 4.6, thus
>the sentence:
>
>SELECT (sum(coalesce(Precio, 0) * coalesce(Cantidad, 1) *
>(100-coalesce(Descuento, 0))/100)*1.16) as TotalAlbaran
>FROM LinAlbaranes LIN
>WHERE AnoAlbaran=2007 and SerieAlbaran=0 and idAlbaran=36
>
>
>is executed correctly
statement. It is syntactically incorrect for Firebird 2 as it is and
is a source of possible confusion for the IBO parser.
Helen