count(test1)/8 as data1,count(test2)/8 as data2 
你用的是count啊,应该用sum的啊.

解决方案 »

  1.   

    Count
    返回集合中项目的数量(具体数目取决于集合)。Sum
    返回在某一集合上对数值表达式求得的和。
      

  2.   

    sql="select seldate,avg(test1) as data1,avg(test2) as data2 from partic where year(seldate)='"&searchyear&"' and month(seldate)='"&searchmonth&"' and pos='a' group by seldate"
      

  3.   

    看错,
    应该用AVGAvg
    返回在某一集合上对数值表达式求得的平均值。
      

  4.   

    对,用AVG来求得集合中的平均数!正解!