• SQLRNNR - Friday, March 24, 2017 3:16 PM

    Luis Cazares - Friday, March 24, 2017 2:58 PM

    A different solution is to use views or derived tables instead of CTEs.

    That was the first item (views) and 3rd (derived tables) that cphite listed.

    I know, but I didn't see his reply before posting mine. I had the tab open too long before replying.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2