Monthly Archives: January, 2015

Retrieving the previous and the next record of a selected record (SQL)

Let's assume we have selected a record (record_id = 7) and we want to select its previous and next record. A very naive approach would be...

Most Read