The following lines contain the word 'select', 'insert', 'update' or 'delete':
l_short_name.delete;
l_short_name.delete;
SELECT source_indicator INTO l_kpi
FROM bsc_kpis_b
WHERE indicator = p_kpi;
g_kpi(p_kpi).property.last_update_date:=bsc_metadata.get_kpi_LUD(p_kpi);
g_kpi(p_kpi).dim_set.delete;
g_kpi(p_kpi).dim_set_id.delete;
p_dim_set.levels.delete;
l_child_levels.delete;
l_rel_level_name.delete; --'parent.child'
l_child_levels.delete;
l_rel_level_name.delete;
p_dim_set.measure.delete;
add_measures.delete;
bsc_aw_utility.delete_table('bsc_aw_temp_vn',null);
execute immediate 'insert into bsc_aw_temp_vn(name) values (:1)' using l_xtd_report_date(i);
g_stmt:='select to_char(periodicity_id),period||''.''||year period from '||l_xtd_keys_table||',bsc_aw_temp_vn where session_id=:1 and '||
'to_char(report_date,''MM/DD/YYYY'')=bsc_aw_temp_vn.name order by periodicity_id';
select calendar_id into l_calendar_id from bsc_sys_periodicities where periodicity_id=l_periodicity_id;
select max(year) into l_max_period from bsc_db_calendar where calendar_id=l_calendar_id;
select min(year) into l_min_period from bsc_db_calendar where calendar_id=l_calendar_id;
these values in the cube. but select from the mv will show all 1000 dim values. to restrict this to just the 2, we have to limit
the dim to only those values in the composite
in order to do this we do the following
- limit dim to ALL (as before)
- limit CC dim add dim (as before)
- create a session boolean cube
- for all composites
- cube=true across composites
- limit CC dim to cube
*/
for i in 1..p_dim_set.limit_track(l_count).limit_dim.count loop
if p_dim_set.limit_track(l_count).limit_dim(i).value='^ALL' then
bsc_aw_dbms_aw.execute('limit '||p_dim_set.limit_track(l_count).limit_dim(i).level_name||' TO ALL');
l_parse_values.delete;
bsc_aw_dbms_aw.execute_ne('delete '||l_cube);
bsc_aw_dbms_aw.execute_ne('delete '||l_cube);
l_measures.delete;
l_cubes.delete;
g_kpi.delete;
if l_date>g_kpi(p_kpi).property.last_update_date then
return true;