第一步 SELECT DISTINCTROW tblCSpell.ID
FROM tblCSpell
GROUP BY tblCSpell.ID
HAVING (((tblCSpell.ID)<>DMin("id","tblcspell") And (tblCSpell.ID)<>DMax("id","tblcspell")));
第二步
SELECT DISTINCTROW Avg([tblCSpell 查询].ID) AS ID之Avg, Int([id]/DMax("id","tblcspell")/0.05) AS idp
FROM [tblCSpell 查询]
GROUP BY Int([id]/DMax("id","tblcspell")/0.05);