The following lines contain the word 'select', 'insert', 'update' or 'delete':
select amount, available_amount
from oke_pool_parties
where pool_party_id = x_pool_party_id;
select amount
from oke_k_funding_sources
where funding_source_id = x_source_id;
select nvl(start_date_active, x_date)
from oke_pool_parties
where pool_party_id = x_pool_party_id;
select nvl(end_date_active, x_date)
from oke_pool_parties
where pool_party_id = x_pool_party_id;
select nvl(sum(amount), 0)
from oke_k_fund_allocations
where funding_source_id = x_source_id;
select amount
from oke_k_funding_sources
where funding_source_id = x_source_id;
select amount
from oke_k_fund_allocations
where fund_allocation_id = x_allocation_id;
select nvl(sum(hard_limit), 0), nvl(sum(revenue_hard_limit), 0)
from oke_k_fund_allocations
where funding_source_id = x_source_id;
select nvl(hard_limit, 0), nvl(revenue_hard_limit, 0)
from oke_k_funding_sources
where funding_source_id = x_source_id;
select nvl(hard_limit, 0), nvl(revenue_hard_limit, 0)
from oke_k_fund_allocations
where fund_allocation_id = x_allocation_id;
select 'x'
from oke_k_funding_sources
where pool_party_id = x_pool_party_id;
select nvl(min(start_date_active), add_months(x_date, -1))
from oke_k_funding_sources
where pool_party_id = x_pool_party_id;
select nvl(max(end_date_active), add_months(x_date, 1))
from oke_k_funding_sources
where pool_party_id = x_pool_party_id;
select count(1)
into l_count
from oke_k_funding_sources
where pool_party_id = x_pool_party_id;
select amount, available_amount
from oke_pool_parties
where pool_party_id = x_pool_party_id;
select min(nvl(start_date_active, add_months(x_date, -1)))
from oke_k_fund_allocations
where funding_source_id = x_funding_source_id;
select max(nvl(end_date_active, add_months(x_date, 1)))
from oke_k_fund_allocations
where funding_source_id = x_funding_source_id;
select start_date_active
from oke_k_fund_allocations
where funding_source_id = x_funding_source_id;
select end_date_active
from oke_k_fund_allocations
where funding_source_id = x_funding_source_id;
select nvl(start_date_active, x_date)
from oke_k_funding_sources
where funding_source_id = x_funding_source_id;
select nvl(end_date_active, x_date)
from oke_k_funding_sources
where funding_source_id = x_funding_source_id;
select count(p.project_id),
p.segment1
from pa_project_customers c,
pa_projects_all p
where p.project_id = x_project_id
and p.project_id = c.project_id
and c.customer_bill_split <> 0
group by p.project_id, p.segment1;
select nvl(sum(amount), 0)
from oke_k_fund_allocations
where funding_source_id = x_source_id;
select nvl(sum(hard_limit), 0), nvl(sum(revenue_hard_limit), 0)
from oke_k_fund_allocations
where funding_source_id = x_source_id;
select nvl(agreement_flag, 'N')
from oke_k_funding_sources
where funding_source_id = x_funding_source_id;
select currency_code
from pa_projects_all p,
pa_implementations_all i,
gl_sets_of_books g
where p.project_id = x_project_id
and nvl(p.org_id, -99) = nvl(i.org_id, -99)
and i.set_of_books_id = g.set_of_books_id;
select employee_id
from fnd_user
where user_id = x_user_id;
SELECT agreement_type, customer_id
FROM pa_agreements_all
WHERE pm_product_code = OKE_FUNDING_PUB.G_PRODUCT_CODE
AND pm_agreement_reference LIKE '%-' || to_char(x_funding_source_id);
PROCEDURE update_alloc_version(x_fund_allocation_id IN NUMBER,
x_version_add IN NUMBER,
x_commit IN VARCHAR2 := OKE_API.G_FALSE
) is
begin
update oke_k_fund_allocations
set agreement_version = nvl(agreement_version, 0) + x_version_add,
insert_update_flag = null
where fund_allocation_id = x_fund_allocation_id;
end update_alloc_version;
PROCEDURE update_source_flag(x_funding_source_id IN NUMBER,
x_commit IN VARCHAR2 := OKE_API.G_FALSE
) is
l_flag VARCHAR2(1) := 'N';
SELECT 'Y'
FROM pa_agreements_all
WHERE pm_product_code = OKE_FUNDING_PUB.G_PRODUCT_CODE
AND pm_agreement_reference LIKE '%-' || to_char(x_funding_source_id);
UPDATE oke_k_funding_sources
SET agreement_flag = l_flag
WHERE funding_source_id = x_funding_source_id;
END update_source_flag;
select currency_code
from oke_k_funding_sources
where funding_source_id = x_funding_source_id;
select nvl(minimum_accountable_unit, power(10, -1 * precision)),
p.projfunc_currency_code
from pa_projects_all p,
fnd_currencies f
where project_id = x_project_id
and f.currency_code = p.projfunc_currency_code;