Microsoft Access 在一個資料表中, e.g.
class | section A | section B | section C | section D | section E | overall
------------------------------------------------------------------------------
7A | A | C | A | A | A | A
7A | B | A | B | B | B | B
7A | D | C | C | C | C | C
7A | abs | abs | abs | abs | abs | abs
7B | D | A | A | C | A | B
7B | B | A | A | A | A | A
有冇辦法分別數到7A,7B,7A&7B的section A,B,C,D,E,overall有多少個A,B,C,D,E,F,U,abs?
如果先用查詢, 再用count() e個function, 就至少需要1*3*6*8=144個查詢...
*3: 7A, 7B, 7A&7B
*6: section A,B,C,D,E,overall
*8: A,B,C,D,E,F,U,abs
有冇最簡單方法做到(i.e.吾駛開好多個查詢,吾用巨集同VB)? THZ.. ^^