I have a table that I process using a cursor. Lets say it's structure is like this: RID | School | Order | Text
Now, I filter out the other schools(so only mine is shown) and then I ORDER BY order, so that I get the text arranged how I want. Now, my problem is, the order isn't straight incrementing(though all of them are unique per school) it can skip from going 1,2,3,200,823 etc. but I need to be able to basically do a
SELECT * FROM SCHOOL_DATA WHERE ORDER=@order
with order being the original order value. With cursors(even using ABSOLUTE) it flattens the table so that when an ORDER field skips out of place(from 1 to 2 to 100) it thinks that ORDER=100 is the 3rd row in it's internal table, as it should.
But is it possible to address such a thing with cursors so that I can do
FETCH ABSOLUTE 100..
and actually get the row corresponding to ORDER=100?