The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT rule_mode
FROM pay_legislation_rules
WHERE legislation_code = cp_legislation_code
AND rule_type = cp_rule_type;
SELECT upgrade_definition_id
FROM pay_upgrade_definitions
WHERE legislation_code = cp_legislation_code
AND short_name=cp_short_name;
SELECT status
FROM pay_upgrade_status
WHERE legislation_code = cp_legislation_code
AND upgrade_definition_id = cp_upgrade_defination_id;
ltt_rule_type(1) := 'RETRO_DELETE';
UPDATE pay_legislation_rules
SET RULE_MODE = ltt_rule_mode(3)
WHERE legislation_code = lv_legislation_code
AND rule_type = ltt_rule_type(3);
INSERT INTO pay_legislation_rules(legislation_code,rule_type,rule_mode)
VALUES( lv_legislation_code,ltt_rule_type(3),ltt_rule_mode(3));