Jump to content

SELECT next higest number from a column


suttercain

Recommended Posts

Hi everyone.

 

I have a table which has, for simplistic reasons, 5 rows of numbers. The numbers are as follows: 1, 2, 3, 7, 8. Let's say I'm at the row with the number 3, how would I tell it to select the next number, in this case 7?

 

I know how to do it in increments of one, but how can I do it, if the numbers are not consistent with the increment of one?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/152603-select-next-higest-number-from-a-column/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.