May 20, 2014 at 2:00 pm
I've come across somewhere that using BETWEEN is slower that actually using the less than/greater than operator. I have not done any testing on it. Any quick feedback on this?
----------------------------------------------------
May 20, 2014 at 2:06 pm
The tests that I've made, show that the advantage is minimal and not worth it. However, the flexibility you gain when not using BETWEEN is a good reason to avoid it.
May 20, 2014 at 4:03 pm
If you look at the execution plan of a query using the BETWEEN operator you will see that it is converted to a >= and <=.
May 20, 2014 at 4:36 pm
If you look at the execution plan of a query using the BETWEEN operator you will see that it is converted to a >= and <=.
Good Point, thanks.
----------------------------------------------------
Viewing 4 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply