Article View: borland.public.interbase.sql
Article #681Re: Contact Age Query
From: Bill Todd
Date: Fri, 02 Nov 2007 03:20
Date: Fri, 02 Nov 2007 03:20
9 lines
1188 bytes
1188 bytes
The optimizer can use the index if you are selecting on the value in CBIRTHDAY, not on an expression that includes CBIRTHDAY. What you need is a query of the form: SELECT CONTACTID FROM CONSTACTS WHERE CBIRTHDAY < ... -- Bill Todd (TeamB)
Technical Details
Message-ID:
<472a977d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<472a8b02$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,32d2d968e29f0f52
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bill Todd" <no@no.com>
Subject: Re: Contact Age Query
Newsgroups: borland.public.interbase.sql
References: <472a8b02$1@newsgroups.borland.com>
Organization: The Database Group, Inc.
User-Agent: XanaNews/1.18.1.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 65.118.176.23
Message-ID: <472a977d$1@newsgroups.borland.com>
Date: 1 Nov 2007 20:20:29 -0700
X-Trace: newsgroups.borland.com 1193973629 65.118.176.23 (1 Nov 2007 20:20:29 -0700)
Lines: 9
X-Authenticated-User: btodd
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail