The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT oel.line_id, oel.top_model_line_id
FROM oe_order_lines_all oel
WHERE oel.top_model_line_id = oel.line_id
AND oel.link_to_line_id is null
AND oel.header_id = c_header_id;
select phone_country_code,phone_area_code,phone_number,phone_extension,
contact_point_type, primary_flag,phone_line_type,
email_address
from hz_contact_points
where contact_point_type in ('PHONE','EMAIL') and
NVL(status, 'A') = 'A'
and owner_table_name = 'HZ_PARTIES'
and owner_table_id = c_party_id
and primary_flag='Y';
/* The following procudure verifies whether the last_updated_date passed is older than the
last_updated_date present in the DB */
PROCEDURE validate_last_update_date
(p_header_id IN NUMBER,
p_last_update_date IN DATE,
x_is_diff_last_update OUT NOCOPY VARCHAR2)
IS
CURSOR c_getLastUpdatedDate(p_header_id NUMBER) IS
SELECT last_update_date FROM oe_order_headers_all WHERE header_id = p_header_id;
l_getLastUpdatedDate c_getLastUpdatedDate%rowtype;
l_is_diff_last_update VARCHAR2(1) := 'F';
IBE_Util.Debug('In validate_last_update_date : start' );
IBE_Util.Debug('In validate_last_update_date : After Initializations');
OPEN c_getLastUpdatedDate(p_header_id);
FETCH c_getLastUpdatedDate INTO l_getLastUpdatedDate;
IF (c_getLastUpdatedDate%NOTFOUND) THEN
IF (IBE_UTIL.G_DEBUGON = l_true) THEN
IBE_Util.Debug('No order with this header id, it is cancelled');
l_is_diff_last_update := 'T';
ELSIF (l_getLastUpdatedDate.last_update_date > p_last_update_date) THEN
l_is_diff_last_update := 'T';
l_is_diff_last_update := 'F';
CLOSE c_getLastUpdatedDate;
x_is_diff_last_update := l_is_diff_last_update;
IBE_Util.Debug('In validate_last_update_date : End' || x_is_diff_last_update );
IBE_Util.Debug('In validate_last_update_date : End');
END validate_last_update_date;