The following lines contain the word 'select', 'insert', 'update' or 'delete':
select distinct display_name from wf_message_attributes_vl where
name = attributeName and type = attributeType and
message_type in (select message_type from wf_ntf_rule_criteria where rule_name = ruleName);
select distinct display_name from wf_message_attributes_vl where
name = attributeName and type = attributeType and
message_type = messageType;
query_stmt := 'select distinct display_name, name from wf_messages_vl '||
'where ' ||
'(name,type) in '||
'(select message_name, message_type from wf_message_attributes_vl '||
'where '||
'name = :1 and '||
'display_name = :2 and '||
'type = :3 and '||
'message_type in ('||messageTypes||'))';