select sum([count]) as [count],
 [type],[color],[date]
from tablename
group by [type],[color],[date]

解决方案 »

  1.   

    select sum([count]) as [count],
     [type],[color],[date]
    from tablename
    group by [type],[color],[date]
    order by sum([count]) desc
      

  2.   

    select sum([count]) as [count],
     [type],[color],[date]
    from tablename
    group by [type],[color],[date]
    order by [count] desc
      

  3.   

    select sum([count]) [count],
     [type],[color],[date]
    from tablename
    group by [type],[color],[date]
    order by sum([count]) desc
      

  4.   

    select sum([count]) as [count],
     [type],[color],[date]
    from yourtable
    group by [type],[color],[date]
    order by sum([count]) desc
      

  5.   

    select [type],[color],[date],sum([count]) as [count],
     
    from tablename
    group by [type],[color],[date]
    order by [date]