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 -> Re: Hint to get this Query plan?

Re: Hint to get this Query plan?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 8 Feb 2000 19:10:19 -0000
Message-ID: <950038307.5632.1.nnrp-09.9e984b29@news.demon.co.uk>

Given the normal size and speed of
creation of bitmaps - if this query is
important you could try creating a
bitmap on (a,b).

--

Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk

Greg Stark wrote in message
<87ln4vwonj.fsf_at_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 - 13:10:19 CST

Original text of this message

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