• You can northwind this question like this...

    select

    datepart(qq, orderdate) 'day of week'

    , count(*)

    from orders

    group by

    datepart(qq, orderdate)

    you get...

    4202

    3173

    2181

    1274


    {Francisco}