query optimization question
From: Mark W Modrall <modrall_at_world.std.com>
Date: Thu, 11 Jan 2001 11:00:07 GMT
Message-ID: <G6zvw8.5Kr_at_world.std.com>
Date: Thu, 11 Jan 2001 11:00:07 GMT
Message-ID: <G6zvw8.5Kr_at_world.std.com>
Hi...
we've got a couple of tables and some indexes and we're having trouble getting the following query to make use of the indexes:
select * from x,y where x.a = y.a order by x.b desc;
x.b has the index on it already...
select * from x,y where x.b is not null and x.a=y.a order by x.b;
anyone out there have better advice than the oracle racketeers?
thanks
-mark
Received on Thu Jan 11 2001 - 12:00:07 CET