Home Forums SQL Server 2012 SQL Server 2012 - T-SQL Trying to find a more simplistic way to execute this complicated Aggregation Query RE: Trying to find a more simplistic way to execute this complicated Aggregation Query

  • BTW... in anticipation of you using any form of partitioning of one month per file per filegroup, if you think it was easy, you probably did it wrong and wasted a huge amount of space per file. If you decide to go the route of partitioning of the base data (regardless of the use of a summary table or not), let us know... I have some tricks that I've used when I've had to partition such mostly-static tables.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)