The following SQL returns 50 rows:
select cpr2.rxclaimnbr from claimspaidreversed as cpr1 join claimspaidreversed as cpr2 on (cpr1.rxclaimnbr=cpr2.rxclaimnbr) where cpr1.datesbm='2004-06-04' group by cpr2.rxclaimnbr having mod(count(cpr2.claimsts),2)=0
So I threw a count() around cpr2.rxclaimnbr hoping to get back one row containing the number 50.
Instead I get back 50 rows, with what looks like the number of items in each group.
How do I get back the number of rows?