Can anybody help me speed up this query ? I have an index on
p.pptyno and pn.pptyno. Is there anyway of recoding the date logic in the where clause ?
select
count(*)
from
pn,
p
where p.pptyno=pn.pptyno and
pn.filedate>=decode(p.saledate,0,p.adjdate,p.saledate)
thanks
p.pptyno and pn.pptyno. Is there anyway of recoding the date logic in the where clause ?
select
count(*)
from
pn,
p
where p.pptyno=pn.pptyno and
pn.filedate>=decode(p.saledate,0,p.adjdate,p.saledate)
thanks