>pass/fail are students in c1 to c10
>
>i want count to fail/pass students for every class
I agree with Çetin, that we need more details, what your data is and what calculations you need to do.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)