Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 1 to 3 of 3 total |
between optimization |
Wed, May 31 2006 1:29 PM | Permanent Link |
"Jose Eduardo Helminsky" | Tim
I've realized that SQL with between is more optimized than >= and <= dates. Am I right ? Examples: select * from table where dat >= '2006-01-01' and dat <= '2006-01-31' and select * from table where dat between '2006-01-01' and '2006-01-31' Eduardo |
Thu, Jun 1 2006 2:47 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Eduardo,
<< I've realized that SQL with between is more optimized than >= and <= dates. Am I right ? >> Yes. BETWEEN can do the index scan in one shot, whereas the ANDed version requires two index scans. -- Tim Young Elevate Software www.elevatesoft.com |
Fri, Jun 2 2006 3:04 PM | Permanent Link |
"Jose Eduardo Helminsky" | Tim
Ok, I stayed happy with you answer. Thanks Eduardo |
This web page was last updated on Sunday, May 5, 2024 at 10:18 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |