• Just another way to do it. The Tally is just to generate the sample data and has nothing to do with the solution.

    WITH Tally AS(

    SELECT TOP 60 ROW_NUMBER() OVER(ORDER BY object_id) n

    FROM sys.objects

    )

    SELECT RIGHT( 100 + n, 2)

    FROM Tally

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2