patel i see what you are asking, but i don't see the data reflecting something that allows it to beswitched like that;
about all i can suggest is a UNION and statements that reflect the desired ranges.
;
SELECT
ROW_NUMBER() OVER (PARTITION BY RowNumber order by RowID)
,RowID
,TodaysDate
,Name
,RowNumber
where rowid <=20
UNION ALL
SELECT
ROW_NUMBER() OVER (PARTITION BY RowNumber order by RowID)
,RowID
,TodaysDate
,Name
,RowNumber
where rowid > 20
and rowid <= 25
UNION ALL
SELECT
ROW_NUMBER() OVER (PARTITION BY RowNumber order by RowID)
,RowID
,TodaysDate
,Name
,RowNumber
where rowid > 25
and rowid <= 30
Lowell