*!* 假如1到6、7到12、13到18共三个区间,分三个字段:
Select Sum(Iif(Between(Val(序号), 1, 6), 数量, 0000)) As 区间1, ;
Sum(Iif(Between(Val(序号), 7, 12), 数量, 0000)) As 区间2, ;
Sum(Iif(Between(Val(序号), 13, 18), 数量, 0000)) As 区间3 ;
From 求和
Select Sum(Iif(Between(Val(序号), 1, 6), 数量, 0000)) As 区间1, ;
Sum(Iif(Between(Val(序号), 7, 12), 数量, 0000)) As 区间2, ;
Sum(Iif(Between(Val(序号), 13, 18), 数量, 0000)) As 区间3 ;
From 求和
民工子弟学校22班团小组长阳光模特队长冲锋篮球队前锋小苹果合唱队领唱蓝天舞蹈队编舞