select count(*) where 参数=‘参数值’group by  日期

解决方案 »

  1.   

    哦,写漏了。应该是:
    select count(*) from 表 where 参数=‘参数值’group by  日期
      

  2.   

    老兄不是这个意思,我是说要查成这个样子:
       DATE            AMP(COUNT)
    2004-01-12              10000
    4004-01-13              90000
    ....
      

  3.   

    select 日期,count(*) from 表 where 参数=‘参数值’group by 日期
      

  4.   

    是对AMP求和吗?
    select 日期,SUM(AMP) from 表 where 参数=‘参数值’group by 日期