oracle using index even though there is no filter criteeria specified
Posted
by
Kaushik
on Stack Overflow
See other posts from Stack Overflow
or by Kaushik
Published on 2012-10-19T22:58:37Z
Indexed on
2012/10/19
23:00 UTC
Read the original article
Hit count: 200
oracle11g
|explain-plan
In this query:
SELECT WTTEMPLATE.TEMPLATEuID,
MAX (WTTRX.VALUEDATE) AS template_last_use_date
FROM wttemplate, wttrx
WHERE WTTEMPLATE.TEMPLATEID = WTTRX.TEMPLATEID(+)
AND WTTEMPLATE.CUSTID = WTTRX.CUSTID
GROUP BY WTTEMPLATE.TEMPLATEuID
The explain plan shows:index fast full scan using indexes on WTTEMPLATE.TEMPLATEID and (WTTRX.TEMPLATEID,WTTRX.CUSTID). My question is this: I have not specified any filter criteria , so how can it use indexes? It should do full scan...right?
© Stack Overflow or respective owner