• Hi John,

    Here is the output what I am getting:

    USERID USERNAME SALES

    ------------------------------

    5 XRay NULL

    6 Easy 100

    1 Joe 400

    3 Charlie 700

    2 Baker 800

    4 Able 1000

    ~ Lokesh Vij


    Guidelines for quicker answers on T-SQL question[/url]
    Guidelines for answers on Performance questions

    Link to my Blog Post --> www.SQLPathy.com[/url]

    Follow me @Twitter