Home Forums SQL Server 2008 T-SQL (SS2K8) Getting Total Count for each month based on the Start and End Date RE: Getting Total Count for each month based on the Start and End Date

  • Just as a side note:

    Whenever dealing with a date type in character format, I'd prefer the ISO format 'YYYYMMDD', so '20131015' instead of '10/15/2013'

    Just use SET DATEFORMAT DMY in a query window and try Sean's query again....



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]