DBA Data[Home] [Help]

MATERIALIZED VIEW: APPS.BIV_BAC_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
, f.resolved_flag
, sum(f.backlog_count) backlog_count
, sum(f.escalated_count) escalated_count
, sum(f.unowned_count) unowned_count
/* the following columns prefixed with mv_ exist solely to enable
   MV to be fast refreshable */
, count(f.backlog_count) mv_backlog_count
, count(f.escalated_count) mv_escalated_count
, count(f.unowned_count) mv_unowned_count
, count(*) mv_count
/* end of fast refreshable needed columns */
from
  biv_bac_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 = 4
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
, f.resolved_flag