Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oracle Sql Statement
Message
 
General information
Forum:
Oracle
Category:
Other
Miscellaneous
Thread ID:
00802182
Message ID:
00803515
Views:
35
>First - we are not using conversions in indexes, it was just a thought.
>Second - that's an idea, but it's that like a conversion anyway?
>Thrid - still got same results with your subquery example. Still doing an INDEX scan on cStatus.
>
>I just can't beleive oracle is this stupid to not see that the date range is going to be so much faster.
>
>TIA

Mark,
The second option does not do a convert. In VFP, to combine index expressions you have to use the + or - operator. In Oracle, you simply define the fields to use as the index expression.
create index myindex on mytable 
   ( field1 asc,
     field2 asc,
     field3 asc)
Field1, field2 and field3 do not have to be the same data type.

One other option is to drop the index on cStatus entrirely.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform