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: materialized view for this?

Re: materialized view for this?

From: <david.rydzewski_at_gmail.com>
Date: 11 Jan 2005 06:32:51 -0800
Message-ID: <1105453971.454797.96030@f14g2000cwb.googlegroups.com>


I strongly recommend reading the documentation.

Again, in this case rewrite *could* not possibly work because "e" does not exist in your materialized view. In theory rewrite would occur if your materialized view was defined as....

select a, e, sum(b) x,sum(c) y,max(d) z from table1 group by a, e

There are more limitations on max than there is on sum, that is why it is important to read the doc. Also, there are certain requirements like including count(*) and/or avg(colX) in your materalized view even if you don't need them in order to get certain rewrites to work.

Then try some simple tests (e.g., table, materialized view, query, explain plan) to see if rewrite is actually happening.

Dave Received on Tue Jan 11 2005 - 08:32:51 CST

Original text of this message

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