I have two columns in which values (numbers) are stored, how to choose where my given number is between the values in two columns?
Example
`id | col1 | col2`
`1 | 20 | 50`
`2 | 200 | 400`
`3 | 500 | 650`
If I have a value of 25, how can I select the records where the value of 25 is between them, in this case it will be line 1
source
share