I have a simple question, suppose we have a table:
id A B
1 Jon Doe
2 Foo Bar
3 Jon Doe
4 Foo Bar
5 Jon Doe
6 Foo Bar
7 Jon Doe
8 Foo Bar
9 Jon Doe
10 Foo Bar
Is there a way to get next and previous 2 ids by passing an id. If I pass 5 as an Id then the query should return 3,4,6,7 as a result.