It's already been pointed out that the connection between the two reads is using BETWEEN,
Apart from that, SORTING a table and using BINARY SEARCH is such old school. Rather use a HASHED table - or a SORTED table if you have to.
It's already been pointed out that the connection between the two reads is using BETWEEN,
Apart from that, SORTING a table and using BINARY SEARCH is such old school. Rather use a HASHED table - or a SORTED table if you have to.