Imagine you have a table of vehicles made up of different classes, say "cars","planes","bikes".
So if I did SELECT * from VEHICLES WHERE myClass = 'cars';
I get... "Ferrari, Porsche, Lambo,Lexus" etc
What I would like to know is there a way of counting so I know that in those returned rows "Porsche" is No.2?
Ultimately I'm trying to create NEXT and PREVIOUS buttons so for example if the page was on "Porsche" my NEXT would take me to "Lambo" and previous to "Ferrari".
I'm guessing to do that I need to do something clever with the offSet values, but I'm a little stumped as how to get Porsche to tell me its No.2 of all vehicles with the class of cars.
Any ideas, all feedback appreciated! 😉