Hi
I am little bit curious when I wrote this post.
SELECT *
FROM emp
WHERE ROWNUM < 2;
against
SELECT /*+ FIRST_ROWS(1)*/ *
FROM emp;
When I saw 'EXPLAIN_PLAN' there was huge difference and the second query was a lot better. I know that with the second query we are passing a hint to Optimizer.
But, let some one explain it more clearly?
Thanks in advance.