I have a query ordered by NAME that return smt like this:
ID NAME
2121927 AAA
2123589 AAB
2121050 AAC
2463926 BBB ---> known ID
2120595 CCC
2122831 DDD
2493055 EEE
2123583 EEF
I need to know the next ID and the prev ID (if exists) of known ID && NAME How is it possible with only 1 query ?