|
table scan?Doesn't the "where rrn(a") preclude the use of an index, always causing a
No, even with the enhancements in release 6.1 which allows you to createOr did something change on a recent release?
I have a procedure in a service program that I'd like to change to useSQL, but I can't seem to get my finger on how the index should look so the
DspQty,
Select Cust#, CalDte, Pac#, Dept#, CalTyp, DstFlg, BAmt,
Loc#, PrtFlg, SvPrtFlg, RRN(a)
From CdrMstP a
Where Cust# = :Cust# and CalDte<= :CutOff
and StmDte = '0001-01-01'
Order By Cust#, CalDte;
Update CdrMstP a
Set StmDte = :StmtDate,
Corp# = :Corp#,
Loc# = :ds_CdrOut.Loc#,
Dept# = :ds_CdrOut.Dept#,
PrtFlg = :ds_CdrOut.PrtFlg,
SvPrtFlg = :ds_CdrOut.SvPrtFlg
where rrn(a) = :ds_CDROut.CdrRRN;
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.