smusba
5th September 2011, 14:28
how to write the index
select tdsls041.*,tiitm001.*
from tdsls041,tiitm001
where tdsls041._index2 inrange {" ",:item.f," "," ",:cuno.f} and {" ",:item.t," "," ",:cuno.t}
|and tdsls041._index2 inrange {:item.f} and {:item.t}
and tdsls041.odat between :ddat.f and :ddat.t
and tiitm001._index1 refers to tdsls041
order by tdsls041._index1
The above index is giving error
select tdsls041.*,tiitm001.*
from tdsls041,tiitm001
where tdsls041._index2 inrange {" ",:item.f," "," ",:cuno.f} and {" ",:item.t," "," ",:cuno.t}
|and tdsls041._index2 inrange {:item.f} and {:item.t}
and tdsls041.odat between :ddat.f and :ddat.t
and tiitm001._index1 refers to tdsls041
order by tdsls041._index1
The above index is giving error