The following lines contain the word 'select', 'insert', 'update' or 'delete':
l_dimensions.delete;
for now, we will call bsc_update_dim.Get_Dbi_Dim_Data
called only for NON REC dim
DBI dim are single level dim. we should modify this api to handle multi level dim
*/
procedure get_dim_data_source(
p_level_list dbms_sql.varchar2_table,
p_level_pk_col out nocopy dbms_sql.varchar2_table,
p_data_source out nocopy varchar2,
p_inc_data_source out nocopy varchar2
) is
--
l_level_short_name varchar2(100);
l_data_source BSC_UPDATE_DIM.t_dbi_dim_data;
bsc_update_dim.Get_Dbi_Dim_Data(l_level_short_name,l_data_source);
p_data_source:='(select '||l_code||' from '||l_data_source.table_name||')';
p_inc_data_source:='(select '||l_code||' from '||l_data_source.table_name||')';
p_data_source:='(select distinct '||l_code||' from '||l_data_source.from_clause||' '||l_data_source.where_clause||')';
p_inc_data_source:='(select distinct '||l_code||' from '||l_data_source.from_clause||' '||l_data_source.where_clause||')';
l_data_source BSC_UPDATE_DIM.t_dbi_dim_data;
bsc_update_dim.Get_Dbi_Dim_Data(l_level_short_name,l_data_source);
p_denorm_data_source:='(select '||p_child_col||','||p_parent_col||' from '||l_data_source.denorm_table||')';
p_denorm_change_data_source:='select child_value '||p_child_col||', parent_value '||p_parent_col||' from bsc_aw_rec_dim_hier_change ';
return BSC_DBGEN_METADATA_READER.get_last_update_date_for_fact(p_kpi);