• Sean Lange (12/21/2012)


    Excellent job posting ddl, sample date and desired output!!! I wish everybody would post their questions like this.

    Here is one way to do this.

    select * from #temp

    where cCurrentGradeCode + cAnticipatedGradeCode <> '9999'

    order by cStudentID

    This was good thinking Sean....I thought of this too....but then saw that you had already posted it. Nice 1. 🙂

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉