Database DataWarehousing (MOSC)

MOSC Banner

creating materilized view with refresh on commit

edited Jun 19, 2012 5:36AM in Database DataWarehousing (MOSC) 6 commentsAnswered
Hello,

I'm trying to create a materialized view with refresh on commit. 

this works fine:

CREATE MATERIALIZED VIEW "EQUIPMENT_READINESS_SUM"
  REFRESH ON commit
  AS SELECT NVL(e.detached_master_unit_list_nbr,e.master_unit_list_number) unit_number,
    SUM(DECODE(e.equipment_status, '1', 1,0))  available
  FROM mls2_equipment_active e
  GROUP BY NVL(e.detached_master_unit_list_nbr,e.master_unit_list_number);

but If I tweak that calculation to:

CREATE MATERIALIZED VIEW "EQUIPMENT_READINESS_SUM"
  REFRESH ON commit
  AS SELECT NVL(e.detached_master_unit_list_nbr,e.master_unit_list_number) unit_number,
    SUM(DECODE(e.equipment_status, '1', 1,0))/100  available

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center