Consider the following table structure:
id speed
1 100
2 200
3 300
4 400
5 500
Consider the following query: "SELECT * FROM records WHERE speed >= 300"
- this will return the rows #3, 4, 5. Is there a way to modify this query so that with the same 300
speed parameter it would also return the first row that does not fit the condition i.e. #2. So that the end results would be rows #2, 3, 4, 5?
UPD: Note that all the values and the records count here are arbitrary and for example only. The database is SQLite.