Subject | Re: [firebird-support] Query returns invalid result |
---|---|
Author | Arno Brinkman |
Post date | 2004-10-08T14:29:52Z |
I meant SUM instead of COUNT.
Arno Brinkman
ABVisie
> SELECTRegards,
> COUNT(CASE WHEN CPR1.CLAIMSTS = 'P' THEN 1 ELSE 0 END) -
> COUNT(CASE WHEN CPR1.CLAIMSTS = 'X' THEN 1 ELSE 0 END)
> FROM
> CLAIMSPAIDREVERSED CPR1
> WHERE
> CPR1.DATESBM >= ?
> AND CPR1.DATESBM <= ?
> AND CPR1.ACCOUNTID = ?
Arno Brinkman
ABVisie