The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT formula_type_id
FROM ff_formula_types
WHERE formula_type_name = 'QuickPaint';
SELECT 'x' l_exists
FROM ff_formulas_f
WHERE business_group_id = cp_business_group_id
AND formula_name = cp_formula_name;
SELECT 'x' l_exists
FROM
ff_formulas_f frm
,ff_compiled_info_f fcp
WHERE frm.formula_id = fcp.formula_id
AND frm.business_group_id = cp_business_group_id
AND frm.formula_name = cp_formula_name;
l_last_update_date DATE;
ff_formulas_f_pkg.Insert_Row
(
X_Rowid => l_rowid
,X_Formula_Id => l_formula_id
,X_Effective_Start_Date => hr_general.start_of_time
,X_Effective_End_Date => l_end_date
,X_Business_Group_Id => p_business_group_id
,X_Legislation_Code => l_legislation_code
,X_Formula_Type_Id => g_Formula_Type_Id
,X_Formula_Name => l_formula_name
,X_Description => l_formula_name
,X_Formula_Text => p_formula_text
,X_Sticky_Flag => NULL
,X_Last_Update_Date => l_last_update_date
);
dbg('An error was encountered while inserting the generated fastformula');
SELECT COUNT(step_value)
FROM per_rating_levels
WHERE rating_scale_id = cp_rating_scale_id;
SELECT pat.business_group_id
,pat.name rating_template_name
,prs.name rating_scale_name
,prs.rating_scale_id
,prl.step_value
FROM per_appraisal_templates pat
,per_rating_scales prs
,per_rating_levels prl
WHERE pat.business_group_id = cp_business_group_id
AND pat.rating_scale_id = prs.rating_scale_id
AND pat.rating_scale_id = prl.rating_scale_id
ORDER BY business_group_id
, prs.rating_scale_id
, rating_template_name
, step_value;
SELECT DISTINCT pat.business_group_id business_group_id
FROM per_appraisal_templates pat
WHERE rating_scale_id IS NOT NULL
ORDER BY business_group_id;
dbg('Checking if foundation HR mode is selected.');
dbg('Foundation HR mode is selected.');
PROCEDURE delete_performance_formula(p_business_group_id IN NUMBER)
IS
--
-- find the rowid of the fast_formula that we want to delete
--
CURSOR csr_formula_rowid (cp_business_group_id NUMBER) IS
SELECT rowid
FROM ff_formulas_f
WHERE formula_name = c_prf_aprsl_ff_name
AND business_group_id = cp_business_group_id;
ff_formulas_f_pkg.Delete_Row
(
X_Rowid => l_row_id
,X_Formula_Id => NULL
,X_Dt_Delete_Mode => 'DELETE'
,X_Validation_Start_Date => NULL
,X_Validation_End_Date => NULL
);
dbg('Formula has been successfully deleted ...');
dbg('An error was encountered while attempting to delete a fastformula');
g_msg_sub_group := NVL(g_msg_sub_group, 'DELETE_PERFORMANCE_FORMULA');
END delete_performance_formula;
PROCEDURE delete_all_prfrmnc_formulas
IS
--
-- find all performance appraisal fast formulas
--
CURSOR csr_all_prfrmnc_formulas IS
SELECT rowid
FROM ff_formulas_f
WHERE formula_name = c_prf_aprsl_ff_name;
ff_formulas_f_pkg.Delete_Row
(
X_Rowid => l_all_prfrmnc_formulas.rowid
,X_Formula_Id => NULL
,X_Dt_Delete_Mode => 'DELETE'
,X_Validation_Start_Date => NULL
,X_Validation_End_Date => NULL
);
dbg('Formulas have been successfully deleted ...');
dbg('An error was encountered while attempting to delete fastformulas');
g_msg_sub_group := NVL(g_msg_sub_group, 'DELETE_ALL_PRFRMNC_FORMULAS');
END delete_all_prfrmnc_formulas;
dbg('Checking if foundation HR mode is selected.');
dbg('Foundation HR mode is selected.');
dbg('Checking if foundation HR mode is selected.');
dbg('Foundation HR mode is selected.');