I have table with two columns. One is start and another column is end. If I give any number it has to pick all matching rows in the table. Example:
start | End 100 | 200 100 | 500 1 | 345 200 | 400
If i give 123 it should pick:
100 | 200 100 | 500 1 | 345
How to write query for this?