• jsayerweb (1/29/2014)


    Yes?!

    Cheers

    J

    Msg 102, Level 15, State 1, Line 1

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 2

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 3

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 4

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 5

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 6

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 7

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 8

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 9

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 10

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 11

    Incorrect syntax near ':'.

    Msg 102, Level 15, State 1, Line 12

    Incorrect syntax near ':'.

    Come on Jon, you can do better than this!

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden