• Hi,

    I think we can achieve the same without rank function.

    SELECT * FROM GetMissingItems WHERE RowNumber = 1



    Praveen D'sa
    MCITP - Database Administrator 2008
    http://sqlerrors.wordpress.com