• bmg002 - Wednesday, April 12, 2017 3:37 PM


    side note - SQL Prompt made the above code pop out super quick and easy to do.  I don't work for them, but I enjoy their tools.

    +1 for SQLPrompt; however, if you (or your company) doesn't run to licences for that, then try the free site http://poorsql.com/ to do query code formatting.

    Thomas Rushton
    blog: https://thelonedba.wordpress.com