The following lines contain the word 'select', 'insert', 'update' or 'delete':
ret := per_ca_ee_extract_pkg.update_rec(p_conc_request_id);
cursor cur_data is select
'TOTAL NO OF PROMOTIONS' from dual;
select
to_number(segment3) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment4) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment5) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment6) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment7) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment8) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment9) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment10) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment11) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment12) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment13) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment14) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_n_type,1,5) = 'FORM5' and
segment1 = 'NATIONAL' and
segment2 =decode(substr(f4_n_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment4) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment5) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment6) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment7) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment8) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment9) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment13) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment14) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment15) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment10) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment11) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
select
to_number(segment12) from
per_ca_ee_report_lines where
request_id = p_conc_request_id and
context = 'FORM5P' and
substr(f4_p_type,1,5) = 'FORM5' and
segment1 = 'PROVINCE' and
segment2 = f4_p_name1 and
segment3 =decode(substr(f4_p_type,6,1),'A','FR','B','PR','C','PT');
cursor cur_data is select
'TOTAL NUMBER OF PROMOTIONS' from dual;
/*SRW.DO_SQL('DELETE per_ca_ee_report_lines
WHERE request_id = :p_conc_request_id');*/null;