Retrieve last 12 months

  • Steve Collins wrote:

    Checking back in here.  The OP generated the 15 minute data from the recursive CTE and that's all the data they currently have?  As an aside: a recursive CTE is a slow way to generate rows and it takes many seconds to run.  The OP is using an ID column to "be sure that the search is returning the correct values ​​as a total of 96 values ​​per day".  Maybe they're looking for relative date queries with summarizations.  The goal appears to be to confirm the DB Engine works properly

    I can't answer any of your questions because I'm still waiting from the OP for answers to my questions. 😀

    --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)

Viewing post 16 (of 15 total)

You must be logged in to reply to this topic. Login to reply