DBA Data[Home] [Help]

MATERIALIZED VIEW: APPS.BIV_RES_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.resolution_count) resolution_count
, sum(f.total_time_to_resolution) total_time_to_resolution
, sum(time_to_resolution_b1) time_to_resolution_b1
, sum(time_to_resolution_b2) time_to_resolution_b2
, sum(time_to_resolution_b3) time_to_resolution_b3
, sum(time_to_resolution_b4) time_to_resolution_b4
, sum(time_to_resolution_b5) time_to_resolution_b5
, sum(time_to_resolution_b6) time_to_resolution_b6
, sum(time_to_resolution_b7) time_to_resolution_b7
, sum(time_to_resolution_b8) time_to_resolution_b8
, sum(time_to_resolution_b9) time_to_resolution_b9
, sum(time_to_resolution_b10) time_to_resolution_b10
/* the following columns prefixed with mv_ exist solely to enable
   MV to be fast refreshable */
, count(f.resolution_count) mv_resolution_count
, count(f.total_time_to_resolution) mv_total_time_to_resolution
, count(time_to_resolution_b1) mv_time_to_resolution_b1
, count(time_to_resolution_b2) mv_time_to_resolution_b2
, count(time_to_resolution_b3) mv_time_to_resolution_b3
, count(time_to_resolution_b4) mv_time_to_resolution_b4
, count(time_to_resolution_b5) mv_time_to_resolution_b5
, count(time_to_resolution_b6) mv_time_to_resolution_b6
, count(time_to_resolution_b7) mv_time_to_resolution_b7
, count(time_to_resolution_b8) mv_time_to_resolution_b8
, count(time_to_resolution_b9) mv_time_to_resolution_b9
, count(time_to_resolution_b10) mv_time_to_resolution_b10
, count(*) mv_count
/* end of fast refreshable needed columns */
from
  biv_res_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