我有一张这样的桌子
Days taken
12
10
10
12
9
10
8
10
我想要一个这样的查询
Type | Count
Days over 10 | 2
Days under 10 | 6
到目前为止我有这个
SELECT Sum(IIf([table].[days taken]<=10,1,0)) AS [Days Under Ten],
Sum(IIf([table].[days taken]>10,1,0)) AS [Days Over Ten]
FROM [table];
这给了我这个
Days under ten | Days over ten
6 | 2
但这不是我想要的,请帮助我。