The following lines contain the word 'select', 'insert', 'update' or 'delete':
select name
from ota_chats_tl
where chat_id = P_CHAT_ID
and language = userenv('LANG');
select es.meaning
from hr_lookups es
WHERE es.lookup_type='OTA_CHAT_REPORT_TYPES'
AND sysdate BETWEEN NVL(es.start_date_active,sysdate) AND NVL (es.end_date_active, sysdate)
AND es.enabled_flag ='Y'
AND es.lookup_code = P_TYPE ;
select fnd_date.date_to_displaydate(to_date(substr((P_MESSAGE_START_DATE),1,10),'yyyy/mm/dd'))
into C_FROM_DATE
from dual;
select fnd_date.date_to_displaydate(to_date(substr((P_MESSAGE_END_DATE),1,10),'yyyy/mm/dd'))
into C_TO_DATE
from dual;