Tag: sql
-
Make a select with max and min passing condition to each of the two
6 When a post is accessed, I need, in addition to returning the information of this posts, to return the previous one if it exists and the next one. I would like to know if there is a way to select MAX(id) and MIN(id) in a single query/select, passing a condition for each one of…