The following lines contain the word 'select', 'insert', 'update' or 'delete':
PROCEDURE insert_ap_income_tax_types;
cursor c_territory is select iso_territory
from fnd_languages
where installed_flag = 'B';
SELECT resp_enabled_flag, user_enabled_flag
FROM fnd_profile_options
WHERE profile_option_name = 'FV_ENABLED';
insert_ap_income_tax_types;
PROCEDURE insert_ap_income_tax_types IS
l_module_name varchar2(200);
l_module_name := g_module_name || 'insert_ap_income_tax_types';
INSERT INTO ap_income_tax_types
(income_tax_type,
description,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by)
(SELECT 'GOV 1','Unemployment compensation',sysdate,1,1,sysdate,1
FROM DUAL
WHERE NOT EXISTS
(SELECT 'x'
FROM ap_income_tax_types
WHERE income_tax_type = 'GOV 1'
AND description = 'Unemployment compensation'));
INSERT INTO ap_income_tax_types
(income_tax_type,
description,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by)
(SELECT 'GOV 6','Taxable grants',sysdate,1,1,sysdate,1
FROM DUAL
WHERE NOT EXISTS
(SELECT 'x'
FROM ap_income_tax_types
WHERE income_tax_type = 'GOV 6'
AND description = 'Taxable grants'));
INSERT INTO ap_income_tax_types
(income_tax_type,
description,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by)
(SELECT 'GOV 6A','Energy grants',sysdate,1,1,sysdate,1
FROM DUAL
WHERE NOT EXISTS
(SELECT 'x'
FROM ap_income_tax_types
WHERE income_tax_type = 'GOV 6A'
AND description = 'Energy grants'));
INSERT INTO ap_income_tax_types
(income_tax_type,
description,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by)
(SELECT 'GOV 7','Agriculture payments',sysdate,1,1,sysdate,1
FROM DUAL
WHERE NOT EXISTS
(SELECT 'x'
FROM ap_income_tax_types
WHERE income_tax_type = 'GOV 7'
AND description = 'Agriculture payments'));
INSERT INTO ap_income_tax_types
(income_tax_type,
description,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by)
(SELECT 'INT 1','Interest income not included in box 3',sysdate,1,1,sysdate,1
FROM DUAL
WHERE NOT EXISTS
(SELECT 'x'
FROM ap_income_tax_types
WHERE income_tax_type = 'INT 1'
AND description = 'Interest income not included in box 3'));
INSERT INTO ap_income_tax_types
(income_tax_type,
description,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by)
(SELECT 'INT 1A','Financial institution interest income not included in box 3',
sysdate,1,1,sysdate,1
FROM DUAL
WHERE NOT EXISTS
(SELECT 'x'
FROM ap_income_tax_types
WHERE income_tax_type = 'INT 1A'
AND description = 'Financial institution interest income not included in box
3'));
INSERT INTO ap_income_tax_types
(income_tax_type,
description,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by)
(SELECT 'INT 3','Interest on U.S. Savings Bonds and Treasury obligations',
sysdate,1,1,sysdate,1
FROM DUAL
WHERE NOT EXISTS
(SELECT 'x'
FROM ap_income_tax_types
WHERE income_tax_type = 'INT 3'
AND description = 'Interest on U.S. Savings Bonds and Treasury obligations'))
;
END insert_ap_income_tax_types;
CURSOR c_territory IS select iso_territory
from fnd_languages
where installed_flag in ('I', 'B');