The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT rowid
FROM oki_rnwl_bookings rbk
WHERE rbk.summary_build_date = p_summary_build_date
AND rbk.authoring_org_id = p_authoring_org_id
AND rbk.customer_party_id = p_customer_party_id
AND rbk.scs_code = p_scs_code
AND rbk.measure_code = p_measure_code
;
INSERT INTO oki_rnwl_bookings
(
summary_build_date
, authoring_org_id
, organization_name
, customer_party_id
, customer_name
, scs_code
, measure_code
, measure_code_meaning
, bin_code_seq
, curr_base_contract_amount
, prev_base_contract_amount
, request_id
, program_application_id
, program_id
, program_update_date )
VALUES (
p_summary_build_date
, p_authoring_org_id
, p_organization_name
, p_customer_party_id
, p_customer_name
, p_scs_code
, p_measure_code
, p_measure_code_meaning
, p_bin_code_seq
, p_curr_base_contract_amount
, p_prev_base_contract_amount
, oki_load_rbk_pvt.g_request_id
, oki_load_rbk_pvt.g_program_application_id
, oki_load_rbk_pvt.g_program_id
, oki_load_rbk_pvt.g_program_update_date ) ;
UPDATE oki_rnwl_bookings SET
curr_base_contract_amount = p_curr_base_contract_amount
, prev_base_contract_amount = p_prev_base_contract_amount
, measure_code_meaning = p_measure_code_meaning
, bin_code_seq = p_bin_code_seq
, organization_name = p_organization_name
, customer_name = p_customer_name
, request_id = oki_load_rbk_pvt.g_request_id
, program_application_id = oki_load_rbk_pvt.g_program_application_id
, program_id = oki_load_rbk_pvt.g_program_id
, program_update_date = oki_load_rbk_pvt.g_program_update_date
WHERE ROWID = p_rbk_rowid ;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE shd.is_new_yn IS NULL
AND ( shd.date_canceled IS NULL
OR shd.date_canceled >= p_qtr_start_date )
AND ( shd.date_signed IS NULL
OR shd.date_signed >= p_qtr_start_date )
AND shd.start_date < p_qtr_start_date
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
AND shd.authoring_org_id = p_authoring_org_id
;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE shd.is_new_yn IS NULL
AND shd.date_signed IS NOT NULL
AND shd.date_approved IS NOT NULL
AND shd.start_date < p_qtr_start_date
AND GREATEST(shd.date_signed, shd.date_approved )
BETWEEN p_qtr_start_date AND p_summary_build_date
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
AND shd.authoring_org_id = p_authoring_org_id
;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE shd.is_new_yn IS NULL
AND shd.date_signed IS NOT NULL
AND shd.start_date BETWEEN p_qtr_start_date AND p_qtr_end_date
AND GREATEST(shd.date_signed, shd.date_approved) <= p_qtr_end_date
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
AND shd.authoring_org_id = p_authoring_org_id
;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE shd.date_signed <= p_summary_build_date
AND shd.date_approved <= p_summary_build_date
AND shd.is_new_yn = 'Y'
AND shd.start_date BETWEEN p_qtr_start_date
AND p_summary_build_date
AND ( shd.date_terminated IS NULL
OR shd.date_terminated > p_summary_build_date )
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
AND shd.authoring_org_id = p_authoring_org_id
;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE date_terminated BETWEEN p_qtr_start_date
AND p_summary_build_date
AND shd.date_signed IS NOT NULL
AND shd.date_approved IS NOT NULL
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
AND shd.authoring_org_id = p_authoring_org_id
;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE shd.is_new_yn IS NULL
AND ( shd.date_canceled IS NULL
OR shd.date_canceled >= p_qtr_start_date )
AND ( shd.date_signed IS NULL
OR shd.date_signed >= p_qtr_start_date )
AND shd.start_date < p_qtr_start_date
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE shd.is_new_yn IS NULL
AND shd.date_signed IS NOT NULL
AND shd.date_approved IS NOT NULL
AND shd.start_date < p_qtr_start_date
AND GREATEST(shd.date_signed, shd.date_approved )
BETWEEN p_qtr_start_date AND p_summary_build_date
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE shd.is_new_yn IS NULL
AND shd.date_signed IS NOT NULL
AND shd.start_date BETWEEN p_qtr_start_date AND p_qtr_end_date
AND GREATEST(shd.date_signed, shd.date_approved) <= p_qtr_end_date
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE shd.date_signed <= p_summary_build_date
AND shd.date_approved <= p_summary_build_date
AND shd.is_new_yn = 'Y'
AND shd.start_date BETWEEN p_qtr_start_date
AND p_summary_build_date
AND ( shd.date_terminated IS NULL
OR shd.date_terminated > p_summary_build_date )
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
;
SELECT NVL(SUM(base_contract_amount), 0) value
, COUNT(shd.chr_id) contract_count
FROM oki_sales_k_hdrs shd
WHERE date_terminated BETWEEN p_qtr_start_date
AND p_summary_build_date
AND shd.date_signed IS NOT NULL
AND shd.date_approved IS NOT NULL
AND shd.base_contract_amount BETWEEN 0
AND oki_utl_pub.g_contract_limit
;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
l_loc := 'Inserting / updating ' || l_measure_type || '.' ;
l_loc := 'Insert the new record -- ' || l_measure_type || '.' ;
l_loc := 'Update the record -- ' || l_measure_type || '.' ;
oki_refresh_pvt.update_oki_refresh( l_table_name, l_retcode ) ;
g_program_update_date := SYSDATE ;