Hi,
I want to use the below query to generate a report using Cr 8.5 however, when i run this query it is exteremly slow .I do not really know why that is happening and i really appreciate if you throw your help how i can enhance this query and get my report at a resonable amount of time.any suggestion is valuable to me...
thank you
select DISTINCT B.DATELET,P.CCNTY1,P.CFACSSUP, P.CPROJNUM, P.PRROUTE,Q.IPLINENO,I.ITEM,I.IDESCR,Q.QTY,I.IUNITS
from LETPROP L, PROJECT R, PROPPROJ J, PROPOSAL P, PROPITEM Q, BIDLET B, BIDTABS C, ITEMLIST I
WHERE L.LETTING = B.LETTING
AND B.LETTING = C.LETTING
AND P.CSPECYR = I.ISPECYR
AND Q.PRPITEM = I.ITEM
AND L.LCONTID = P.CONTID
AND Q.CONTID = P.CONTID
AND C.VENDOR = L.AVENDOR
AND C.CALL = L.CALL
AND C.LINEFLAG = Q.LINEFLAG
AND C.IPLINENO = Q.IPLINENO
AND B.DATELET >= '01-JAN-04' AND B.DATELET < '01-JAN-05'
AND R.PCN = J.PCN
AND L.LETSTAT = 'A'
I want to use the below query to generate a report using Cr 8.5 however, when i run this query it is exteremly slow .I do not really know why that is happening and i really appreciate if you throw your help how i can enhance this query and get my report at a resonable amount of time.any suggestion is valuable to me...
thank you
select DISTINCT B.DATELET,P.CCNTY1,P.CFACSSUP, P.CPROJNUM, P.PRROUTE,Q.IPLINENO,I.ITEM,I.IDESCR,Q.QTY,I.IUNITS
from LETPROP L, PROJECT R, PROPPROJ J, PROPOSAL P, PROPITEM Q, BIDLET B, BIDTABS C, ITEMLIST I
WHERE L.LETTING = B.LETTING
AND B.LETTING = C.LETTING
AND P.CSPECYR = I.ISPECYR
AND Q.PRPITEM = I.ITEM
AND L.LCONTID = P.CONTID
AND Q.CONTID = P.CONTID
AND C.VENDOR = L.AVENDOR
AND C.CALL = L.CALL
AND C.LINEFLAG = Q.LINEFLAG
AND C.IPLINENO = Q.IPLINENO
AND B.DATELET >= '01-JAN-04' AND B.DATELET < '01-JAN-05'
AND R.PCN = J.PCN
AND L.LETSTAT = 'A'