The following lines contain the word 'select', 'insert', 'update' or 'delete':
(select parent_first_pty_org_id, tax_regime_code
from ZX_SUBSCRIPTION_DETAILS
where view_options_code in (''NONE'',''VFC'',''VFR'')
and SYS_CONTEXT(''my_ctx'',''EFFECTIVEDATE'') between effective_from and
nvl(effective_to, SYS_CONTEXT(''my_ctx'',''EFFECTIVEDATE'')) and first_pty_org_id = nvl(SYS_CONTEXT(''my_ctx'',''FIRSTPTYORGID''),-999)) ';
(select decode(opt.exception_option_code, ''OWN_ONLY'', ru.first_pty_org_id, -99),
ru.tax_regime_code
from ZX_SUBSCRIPTION_OPTIONS opt,
ZX_REGIMES_USAGES ru
where ru.regime_usage_id = opt.regime_usage_id
and SYS_CONTEXT(''my_ctx'',''EFFECTIVEDATE'') between opt.effective_from and
nvl(opt.effective_to, SYS_CONTEXT(''my_ctx'',''EFFECTIVEDATE'')) and ru.first_pty_org_id = nvl(SYS_CONTEXT(''my_ctx'',''FIRSTPTYORGID''),-999) )';
(select det.parent_first_pty_org_id, det.tax_regime_code
from ZX_SUBSCRIPTION_DETAILS det,
ZX_FIRST_PARTY_ORGANIZATIONS_V ptp
where det.first_pty_org_id = ptp.party_tax_profile_id)
or content_owner_id = -99';
(select det.parent_first_pty_org_id, det.tax_regime_code
from ZX_SUBSCRIPTION_DETAILS det,
ZX_FIRST_PARTY_ORGANIZATIONS_V ptp
where det.first_pty_org_id = ptp.party_tax_profile_id)';
(select decode(opt.exception_option_code, ''OWN_ONLY'', ru.first_pty_org_id, -99), ru.tax_regime_code
from ZX_SUBSCRIPTION_OPTIONS opt,
ZX_REGIMES_USAGES ru,
ZX_FIRST_PARTY_ORGANIZATIONS_V ptp
where ru.first_pty_org_id = ptp.party_tax_profile_id
and ru.regime_usage_id = opt.regime_usage_id)
or content_owner_id = -99';
(select decode(opt.exception_option_code, ''OWN_ONLY'', ru.first_pty_org_id, -99), ru.tax_regime_code
from ZX_SUBSCRIPTION_OPTIONS opt,
ZX_REGIMES_USAGES ru,
ZX_FIRST_PARTY_ORGANIZATIONS_V ptp
where ru.first_pty_org_id = ptp.party_tax_profile_id
and ru.regime_usage_id = opt.regime_usage_id)';
(select parent_first_pty_org_id, tax_regime_code
from ZX_SUBSCRIPTION_DETAILS det,
ZX_FIRST_PARTY_ORGANIZATIONS_V ptp
where det.first_pty_org_id = ptp.party_tax_profile_id
and det.view_options_code = ''VFC'')
or content_owner_id = -99';
(select parent_first_pty_org_id, tax_regime_code
from ZX_SUBSCRIPTION_DETAILS det,
ZX_FIRST_PARTY_ORGANIZATIONS_V ptp
where det.first_pty_org_id = ptp.party_tax_profile_id
and det.view_options_code = ''VFC'')';
(select ru.first_pty_org_id, ru.tax_regime_code
from ZX_SUBSCRIPTION_OPTIONS opt,
ZX_REGIMES_USAGES ru,
ZX_FIRST_PARTY_ORGANIZATIONS_V ptp
where ru.first_pty_org_id = ptp.party_tax_profile_id
and ru.regime_usage_id = opt.regime_usage_id
and opt.exception_option_code = ''OWN_ONLY'')
or content_owner_id = -99';
(select ru.first_pty_org_id, ru.tax_regime_code
from ZX_SUBSCRIPTION_OPTIONS opt,
ZX_REGIMES_USAGES ru,
ZX_FIRST_PARTY_ORGANIZATIONS_V ptp
where ru.first_pty_org_id = ptp.party_tax_profile_id
and ru.regime_usage_id = opt.regime_usage_id
and and opt.exception_option_code = ''OWN_ONLY'')';
select 1
into l_count
from ZX_SUBSCRIPTION_DETAILS det
where det.first_pty_org_id = p_first_party_org_id
and det.tax_regime_code = p_tax_regime_code
and det.view_options_code = 'VFC';
select 1
into l_count
from ZX_SUBSCRIPTION_DETAILS det
where det.first_pty_org_id = p_first_party_org_id
and det.tax_regime_code = p_tax_regime_code
and det.view_options_code = 'VFC';
(select tax_regime_code
from ZX_SUBSCRIPTION_DETAILS det
where det.first_pty_org_id = nvl(SYS_CONTEXT(''my_ctx'',''FIRSTPTYORGID'') ,-999) )';