The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT qpr.plan_relationship_id, qpr.data_entry_mode, qpr.auto_row_count,
qpr.plan_relationship_type,
qpr.default_parent_spec, qpr.layout_mode
FROM qa_pc_plan_relationship qpr
WHERE qpr.parent_plan_id = parent_id
AND qpr.child_plan_id = child_id
ORDER BY qpr.creation_date DESC;
QA_SS_PARENT_CHILD_PKG.insert_plan_rel(
p_parent_plan_id => p_target_parent_plan_id,
p_child_plan_id => p_target_child_plan_id,
p_plan_relationship_type => c1_rec.plan_relationship_type,
p_data_entry_mode => c1_rec.data_entry_mode,
p_auto_row_count => c1_rec.auto_row_count,
p_default_parent_spec => c1_rec.default_parent_spec,
x_plan_relationship_id => x_new_plan_relationship_id);
QA_PC_PLAN_REL_PKG.Insert_Row(
X_Rowid => x_row_id,
X_Plan_Relationship_Id => x_new_plan_relationship_id,
X_Parent_Plan_Id => p_target_parent_plan_id,
X_Child_Plan_id => p_target_child_plan_id,
X_Plan_Relationship_Type => c1_rec.plan_relationship_type,
X_Data_Entry_Mode => c1_rec.data_entry_mode,
X_Layout_mode => c1_rec.layout_mode,
X_Auto_Row_Count => c1_rec.auto_row_count,
X_Default_Parent_Spec => c1_rec.default_parent_spec,
X_Last_Update_Date => SYSDATE,
X_Last_Updated_By => fnd_global.user_id,
X_Creation_Date => SYSDATE,
X_Created_By => fnd_global.user_id,
X_Last_Update_Login => fnd_global.user_id);
SELECT parent_char_id, child_char_id, element_relationship_type,
decode(link_flag,1,'Y','N') as vlink_flag
FROM qa_pc_element_relationship
WHERE plan_relationship_id = p_old_plan_relationship_id;
QA_SS_PARENT_CHILD_PKG.insert_element_rel(
p_plan_relationship_id => p_new_plan_relationship_id,
p_parent_char_id => c1_rec.parent_char_id,
p_child_char_id => c1_rec.child_char_id,
p_element_relationship_type => c1_rec.element_relationship_type,
p_link_flag => c1_rec.vlink_flag,
x_element_relationship_id => l_new_element_relationship_id);
SELECT char_id, operator, low_value, high_value
FROM qa_pc_criteria
WHERE plan_relationship_id = p_old_plan_relationship_id;
QA_SS_PARENT_CHILD_PKG.insert_criteria_rel(
p_plan_relationship_id => p_new_plan_relationship_id,
p_char_id => c1_rec.char_id,
p_operator => c1_rec.operator,
p_low_value => c1_rec.low_value,
p_high_value => c1_rec.high_value,
x_criteria_id => l_new_criteria_id);
SELECT organization_code
FROM mtl_parameters
WHERE organization_id = p_orgid;
SELECT DISTINCT fu.user_name FROM
fnd_user fu
WHERE
fu.user_id = u_id;
SELECT qpca.plan_char_action_id, qpca.alr_action_id, qpca.message
FROM qa_plans qp, qa_plan_chars qpc, qa_plan_char_action_triggers qpcat, qa_plan_char_actions qpca
WHERE qp.plan_id = qpc.plan_id AND qpc.char_id = qpcat.char_id AND qp.plan_id = qpcat.plan_id
AND qpcat.plan_char_action_trigger_id = qpca.plan_char_action_trigger_id AND qp.plan_id=p_plan_id;
SELECT body
FROM alr_actions
WHERE action_id = p_alract_id AND application_id = 250;
UPDATE ALR_ACTIONS SET BODY = l_body WHERE APPLICATION_ID=250 AND ACTION_ID = c1_rec.alr_action_id;
UPDATE QA_PLAN_CHAR_ACTIONS SET MESSAGE = l_message WHERE PLAN_CHAR_ACTION_ID = c1_rec.plan_char_action_id;
SELECT 1 FROM DUAL
WHERE NOT EXISTS
(SELECT 1 FROM qa_plans
WHERE translate(substr(upper(name),1,25),' ''','__') =
translate(substr(upper(p_plan_name),1,25),' ''','__'));
select_string VARCHAR2(4000);
update_string VARCHAR2(4000);
select_string := 'select plan_id, effective_from, effective_to from qa_plans where plan_id in (';
select_string := select_string || ':' || to_char(i) || ', ';
select_string := select_string || ':' || to_char(i) || ')';
dbms_sql.parse(c1, select_string, dbms_sql.native);
update_string := 'UPDATE QA_PLANS SET effective_from = :1, effective_to = :2 WHERE plan_id = :3';
dbms_sql.parse(c2, update_string, dbms_sql.native);
SELECT child_plan_id
FROM qa_pc_plan_relationship
WHERE parent_plan_id = parent_id;
SELECT qpc.char_id,qpc.result_column_name,qc.name
FROM qa_plan_chars qpc,qa_chars qc, qa_char_indexes qci
WHERE qpc.plan_id = p_plan_id
AND qpc.char_id = qc.char_id
AND qpc.char_id = qci.char_id
AND qci.enabled_flag = 1;