The following lines contain the word 'select', 'insert', 'update' or 'delete':
select timezone_id
from hz_phone_country_codes
where phone_country_code = p_phone_country_code;
select timezone_id
from hz_phone_country_codes
where territory_code = p_country_code
and phone_country_code = p_phone_country_code;
select count(*)
from hz_phone_country_codes
where phone_country_code = p_phone_country_code;
select timezone_id
from hz_phone_area_codes
where phone_country_code = p_phone_country_code
and area_code = p_area_code;
select count(*)
from hz_phone_area_codes
where phone_country_code = p_phone_country_code
and area_code = p_area_code;
select timezone_id
from hz_phone_area_codes
where phone_country_code = p_phone_country_code
and area_code = p_area_code
and territory_code = p_country_code;
SELECT contact_point_id, phone_country_code, phone_area_code
FROM hz_contact_points cp
WHERE contact_point_type = 'PHONE';
SELECT contact_point_id, phone_country_code, phone_area_code
FROM hz_contact_points cp
WHERE contact_point_type = 'PHONE'
and timezone_id is null;
/* for each phone we selected */
OPEN phone_csr;
UPDATE hz_contact_points
SET timezone_id = l_timezone_id
WHERE contact_point_id = I_CONTACT_POINT_ID(i);
UPDATE hz_contact_points
SET timezone_id = l_timezone_id
WHERE contact_point_id = I_CONTACT_POINT_ID(i);
select location_id, country, state, city, postal_code
from hz_locations;
select location_id, country, state, city, postal_code
from hz_locations
where timezone_id is null;
/* for each location we selected */
OPEN location_csr;
UPDATE hz_locations
SET timezone_id = l_timezone_id
WHERE location_id = I_LOCATION_ID(i);
UPDATE hz_locations
SET timezone_id = l_timezone_id
WHERE location_id = I_LOCATION_ID(i);