Is it possible to and can someone please give me a good example of selecting in one query a result set that returns counts for demographics or other things group by a certain grouping? That really sound cryptic so I am going to add an example output of what I am trying to communicate. I want a result set like:
So for each class a count of fields that are populated for Gender, a count of Male, a count of Female, a count of how many of race that are populated and so forth.
So something like Select curricul.class,count(stu.gender),count(stu.race),count(stu.eth) from curricul,stu group by class pivot( count(gender) for gender in (male, female)