KoenPiller
Programmer
Hi,
I cant get this select statement optimized, it takes too long:
Nb products has an index on startingdate, endingdate and productnmr
Just hope on someone around who could help me with this one.
Thanks,
Koen
I cant get this select statement optimized, it takes too long:
Code:
Select myCursor.productnmr, ;
myCursor.startingdate, ;
sum(myCursor.productive) as productive ;
from myCursor ;
join products on products.productnmr = myCursor.productnmr ;
where myCursor.startingdate between(product.startingdate and product.endingdate) ;
into cursor curProductiveactive
Nb products has an index on startingdate, endingdate and productnmr
Just hope on someone around who could help me with this one.
Thanks,
Koen