For example, given this table of sparse ids:
|id| | 1| | 2| | 3| | 6| | 7|
I can obtain the highest "id" from my table using this query:
SELECT max(id) FROM Comics
I get:
|id| | 7|
How can I get the "id" just preceding the highest "id" (even if the values aren't continuous)?