Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Hint to get this Query plan?

Hint to get this Query plan?

From: Greg Stark <greg-spare-1_at_mit.edu>
Date: Tue, 08 Feb 2000 18:11:02 GMT
Message-ID: <87ln4vwonj.fsf@HSE-Montreal-ppp33976.qc.sympatico.ca>

I have a table with two columns a,b both of which have bitmap indexes on them. I want counts grouped by both columns, is there any way to do a bitmap conversion to counts?

ie,

select count(*),a,b from tbl group by a,b;

does a full table scan right now, but

select count(*),a from tbl group by a;
and
select count(*),b from tbl group by b;

both do a bitmap conversion. Is there any way to get oracle to do some kind of combine on the two indexes to get the counts?

--
greg Received on Tue Feb 08 2000 - 12:11:02 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US