Query Performance question
Hi all,
We ran a query on Sunday (very limited user activity on the database) and this query took 2+ hours to run on Sunday morning.
By the afternoon it took 10 seconds to run and wondering if anyone has any pointers. I am guessing the table is now cached and therefore selection will be quicker but should it make this much of a difference?
Sunday morninng
SELECT NVL(SUM(SKGL_LOCAL_POSTING_AMT),0)
FROM
SKYGLTRANS WHERE SKGL_GROP_REF = :B6 AND SKGL_POST_AC_CODE = :B5 AND
SKGL_PERIOD_NUM <= :B4 AND SKGL_PROP_REF = :B3 AND (SKGL_RENT_SERV_FLAG =