DBA Data[Home] [Help]

MATERIALIZED VIEW: APPS.BIV_ACT_H_SUM_MV

Source


select /* 12.0: bug#4526784 */
  f.time_id
, f.period_type_id
, f.incident_type_id
, v.top_node_flag vbh_top_node_flag
, v.parent_id vbh_parent_category_id
, v.imm_child_id vbh_child_category_id
, f.incident_severity_id
, sum(f.first_opened_count) first_opened_count
, sum(f.reopened_count) reopened_count
, sum(f.closed_count) closed_count
/* the following columns prefixed with mv_ exist solely to enable
   MV to be fast refreshable */
, count(f.first_opened_count) mv_first_opened_count
, count(f.reopened_count) mv_reopened_count
, count(f.closed_count) mv_closed_count
, count(*) mv_count
/* end of fast refreshable needed columns */
from
  biv_act_sum_mv f
, ENI.ENI_DENORM_HIERARCHIES v
, INV.MTL_DEFAULT_CATEGORY_SETS m
where
    m.functional_area_id = 11
and v.object_id = m.category_set_id
and v.dbi_flag = 'Y'
and v.object_type = 'CATEGORY_SET'
and f.vbh_category_id = v.child_id
and f.grp_id = 5
group by
  f.time_id
, f.period_type_id
, f.incident_type_id
, v.top_node_flag
, v.parent_id
, v.imm_child_id
, f.incident_severity_id