The following lines contain the word 'select', 'insert', 'update' or 'delete':
select 'ACTUAL_'||bis_notification_id_s.nextval into l_session_id from dual;
SELECT attribute8 plsql_function
from ak_Regions
where region_code = p_region_Code;
SELECT attribute3 base_column
FROM ak_region_items
WHERE region_code = p_region_code
AND attribute_code = cpAttributeCode;
SELECT attribute_code, attribute3 base_column
FROM ak_region_items
WHERE region_code = p_region_code
AND nested_region_code is null
AND ( (attribute1 = 'MEASURE')
or (attribute1 = 'MEASURE_NOTARGET')
or (attribute1 is null and node_query_flag = 'N')
or (attribute1 is null and node_display_flag = 'Y')
);
l_sql := 'select '||l_temp_actual_formula||' from dual';
l_sql := 'select '||l_temp_compareto_formula||' from dual';
SELECT attribute1 disable_viewby, attribute8 plsql_function
from ak_Regions
where region_code = p_region_Code;
SELECT attribute_code, attribute2 from ak_region_items
WHERE display_Sequence = (select min(display_sequence)
from ak_region_items where region_code = pregioncode
and attribute_code <> 'AS_OF_DATE') and region_code = pregioncode;
SELECT attribute3 base_column
FROM ak_region_items
WHERE region_code = p_region_code
AND attribute_code = cpAttributeCode;
SELECT attribute_code, attribute3 base_column
FROM ak_region_items
WHERE region_code = p_region_code
AND nested_region_code is null
AND ( (attribute1 = 'MEASURE')
or (attribute1 = 'MEASURE_NOTARGET')
or (attribute1 is null and node_query_flag = 'N')
or (attribute1 is null and node_display_flag = 'Y')
);
SELECT attribute_code
FROM ak_region_items
WHERE region_code = p_region_code
and attribute2 = p_attrib_code
and attribute1 = l_grand_total;
select 'ACTUAL_'||bis_notification_id_s.nextval into l_session_id from dual;
select attribute_code into l_ranking_attr
from ak_region_items
where region_code = p_region_code and
attribute2 = p_ranking_level;
l_sql := 'select '||l_temp_actual_formula||' from dual';
l_sql := 'select '||l_temp_compareto_formula||' from dual';
SELECT attribute1 disable_viewby, attribute8 plsql_function
from ak_Regions
where region_code = p_region_Code;
SELECT attribute_code, attribute2 from ak_region_items
WHERE display_Sequence = (select min(display_sequence)
from ak_region_items where region_code = pregioncode
and attribute_code <> 'AS_OF_DATE') and region_code = pregioncode;
SELECT attribute3 base_column
FROM ak_region_items
WHERE region_code = p_region_code
AND attribute_code = cpAttributeCode;
SELECT attribute_code, attribute3 base_column
FROM ak_region_items
WHERE region_code = p_region_code
AND nested_region_code is null
AND ( (attribute1 = 'MEASURE')
or (attribute1 = 'MEASURE_NOTARGET')
or (attribute1 is null and node_query_flag = 'N')
or (attribute1 is null and node_display_flag = 'Y')
);
SELECT attribute_code
FROM ak_region_items
WHERE region_code = p_region_code
and attribute2 = p_attrib_code
and attribute1 = l_grand_total;
l_selected_attr_codes BISVIEWER.t_char;
l_selected_base_columns BISVIEWER.t_char;
l_selected_base_columns2 BISVIEWER.t_char;
l_selected_measure_values BISVIEWER.t_char;
l_selected_gt_values BISVIEWER.t_char;
l_selected_col_index BISVIEWER.t_num;
l_selected_gt_index BISVIEWER.t_num;
select 'ACTUAL_'||bis_notification_id_s.nextval into l_session_id from dual;
select attribute_code into l_ranking_attr
from ak_region_items
where region_code = p_region_code and
attribute2 = p_ranking_level;
l_selected_col_index(l_measure_count) := i;
l_selected_attr_codes(l_measure_count) := l_measure_attr_codes(j);
l_selected_base_columns(l_measure_count) := l_measure_base_columns(j);
SORTBY_BASE_COLUMN_LENGTH(p_table1 => l_selected_base_columns
,p_table2 => l_selected_attr_codes
,p_table3 => l_selected_col_index
,x_return_status => x_return_status
,x_msg_count => x_msg_count
,x_msg_data => x_msg_data
);
l_selected_gt_index(l_gt_count) := i;
dbms_sql.define_column(l_cursor, l_selected_col_index(i), l_measure_value, 200);
dbms_sql.column_value(l_cursor, l_selected_col_index(i), l_selected_measure_values(i));
dbms_sql.column_value(l_cursor, l_gt_index(i), l_selected_gt_values(i));
,p_measure_base_columns => l_selected_base_columns
,p_measure_values => l_selected_measure_values
,x_calculated_value => l_measure_value);
for k in 1..l_selected_attr_codes.COUNT loop
if p_measure_attribute_codes(i) = l_selected_attr_codes(k) then
l_measure_value := l_selected_measure_values(k);
if p_measure_attribute_codes(i) = l_measure_attr_codes(l_selected_gt_index(n)) then
l_actual_rec.actual_grandtotal_value := l_selected_gt_values(n);
if p_measure_attribute_codes(i) = l_measure_attr_codes(l_selected_gt_index(n)) then
l_actual_rec.actual_grandtotal_value := l_selected_gt_values(n);
l_sql := 'select '||l_formula||' from dual';