Is there a way to know the last nth
id field of a table, without scanning it completely? (just go to the end of table and get id value)
table
id fieldvalue
1 2323
2 4645
3 556
... ...
100000000 1232
So for example here n = 100000000
100 Million
--------------EDIT----- So which one of the queries proposed would be more efficient?