|
|
Archives of the TeradataForum
Message Posted: Tue, 05 Jun 2001 @ 14:04:05 GMT
Subj: | | Re: TeraData's optimizer |
|
From: | | Frank Martinez |
Well, yes, the BETWEEN will most probably do a FTS, but then, especially with dates, that's the purpose of the System Calendar. If you
are indexed on the date, and you do a join to the System Calendar (a very virtual table, really only existent in memory), the System
Calendar will return a range of dates, which COULD then be used to use the index in the table. HOWEVER, it's always important to have
statistics and READ the explain to see what is actually happening!
iv
Frank C. Martinez IV
| |