‎2008 Apr 25 4:17 PM
Hi,
In SELECT query, which is prefered performance wise - between or GT & LT operator?
Regards,
Balaji Viswanath.
‎2008 Apr 25 4:19 PM
hi,
i suggest you to use RANGES .....
Regards,
Santosh
‎2008 Apr 25 5:22 PM
Hi Balaji ,
Using Ranges increases performance then using between or LT or GT.
Reward points if useful.
Thanks ,
Surya Pydikondala.
‎2008 Apr 25 6:49 PM
Hi Balaji,
first of all, there is no difference in performance if you use v BETWEEN a AND b or v GE a AND v LE b. Very often people make the same error than you, thinking that BETWEEN is a synonym for GT & LT. This is not true. BETWEEN a AND b means that the expression returns TRUE if the value is equal to a, b or something in between.
The database handles both expressions as the same statement. Therefore is no difference at all regarding to performance.
Regards
Ralph Ganszky