• Jeff Moden (3/4/2013)


    Sean Lange (3/4/2013)


    Ed Wagner (3/4/2013)


    Thanks, Sean. Good article. You know, I'm consistently impressed by just how many different uses there are for the tally table. So simple in design, yet the performance gains are through the roof. Thanks again.

    One of the regulars around here (I always forget who) once called it the "Swiss Army Knife of SQL". They were absolutely correct. The usage of something so simple is truly amazing. 😎

    That would be none other than Gianluca Sartori, the "spaghetti dba".

    http://spaghettidba.com/

    Thanks for remembering Jeff. His assessment is so spot on that I often refer to it myself the same. 😛

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/