modify query to use ndexspace

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashimer
    New Member
    • Mar 2008
    • 2

    modify query to use ndexspace

    hi all,

    i have a cursor with the where clause as

    where

    (trn_isin = :smx-isin

    or

    trn_isin = :ws-und-isin

    or

    trn_cusip = : smx-cusip )

    here trn_isin is index ..

    now the selection criteria is either of the 3 values should be present in the table

    if im using the above where clause the query is going for a tablespace scan
    maybe because of OR ... can anyone modify this query to do a indexspace scan ?

    thanks,
    ashimer
  • ashimer
    New Member
    • Mar 2008
    • 2

    #2
    if need arise i can make trn_cusip as another index ..
    IN predicate should work or else joins ..

    Comment

    Working...