• Tejinder Arora (12/13/2007)


    The answer you have posted is wrong

    I tried it on SQL server and it says

    "Msg 102, Level 15, State 1, Line 3

    Incorrect syntax near 'MIDDLE'."

    The only way to get this error is to put an alias on the Customer table. If you use the query as written, 'MIDDLE' is taken as the alias name and no error occurs.

    Derek