Subject | RE: [firebird-support] WHERE and IIF |
---|---|
Author | Alan McDonald |
Post date | 2008-04-17T02:13:42Z |
> The function the IIF gives me error within the WHERE in theYou need to provide the test in the where clause.
> equal sign indicated in red. (Second equal sign after
> function IIF --> cofaccob.entidad='2578')
>
> select cofaccob.entidad, cofaccob.docemp, sum(cofaccob.haber)
> as haber from cofaccob where iif(cofaccob.clave='CS',
> cofaccob.entidad='2578', cofaccob.entidad='2580') group by
> cofaccob.entidad, cofaccob.docemp order by cofaccob.docemp
>
> As would you solve this problem?
>
> Thank you for everything....
> =========
> || ISMAEL ||
> =========
> select cofaccob.entidad, cofaccob.docemp, sum(cofaccob.haber)where iif(cofaccob.clave='CS',
> as haber from cofaccob
cofaccob.entidad='2578', cofaccob.entidad='2580') =2578
> group byOr some such
> cofaccob.entidad, cofaccob.docemp order by cofaccob.docemp
Alan