Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Strage behavior with "select max(), constant" in 7.3.4
Can anyone explain the difference I'm experiencing when running the
following two logically similar sql statements under Oracle 7.3.4.
KEY001B is unique index on b.a;
SQL> r
1 SELECT max(a)
2* FROM b
Elapsed: 00:00:05.97
Execution Plan
SQL> r
1 SELECT 1,max(a)
2* FROM b
Elapsed: 00:03:239.15
Execution Plan
I can't understand why they would produce different execution plans.
Server version is 7.3.4.0.0 on AIX.
(Please no upgrade to Oracle 8/9 "advice")..
Many thanks,
Geraint. Received on Fri Nov 30 2001 - 13:49:54 CST