本帖最后由 orphen_lee 于 2009-10-27 08:59:31 编辑

解决方案 »

  1.   

    只限a类?select 商品类别,下单时间,sum(订单金额)
    from table1
    group by 下单时间
    where 商品类别='a'
      

  2.   

    select 商品类别,下单时间,sum(订单金额) 
    from table1 
    group by 商品类别,下单时间 
    where 商品类别='a'
      

  3.   

    ...这真的是我写的吗,把where写到group by 后面去了
    好低级的错误...