我需要帮助来微调运行长时间的 Oracle SQL 查询。
SELECT
MIN( E.MKT_PRC),
MAX( E.MKT_PRC)
FROM
GL_VESTINGPRIME_RPT VP
INNER JOIN GRANTZ G
ON G.GRANT_NUM = VP.GRANT_NUM
OR G.XFER_ORIG = VP.GRANT_NUM
INNER JOIN EXERCISE E
ON E.GRANT_NUM = G.GRANT_NUM
WHERE
VP.RUNTIME_ID = :B4
AND VP.PLAN_NUM = NVL(:B3, VP.PLAN_NUM)
AND E.EXER_DT BETWEEN :B2 + 1
AND :B1