SELECT 'person_id:'||emp_hy.person_id
FROM (SELECT DISTINCT LEVEL seq,
paf.person_id,
paf.grade_id,
paf.job_id,
paf.supervisor_id,
NVL(ppf.employee_number,ppf.npw_number) employee_number,
ppf.full_name
FROM per_all_people_f ppf,
per_all_assignments_f paf
WHERE ppf.person_id = paf.person_id
AND paf.person_id IS NOT NULL
AND (SYSDATE BETWEEN ppf.effective_start_date
AND ppf.effective_end_date)
and (SYSDATE BETWEEN paf.effective_start_date
AND paf.effective_end_date)
CONNECT BY paf.person_id = PRIOR paf.supervisor_id
START WITH paf.person_id = (SELECT fu.employee_id
FROM fnd_user fu
, gl_je_headers gjh
WHERE ROWNUM = 1
AND gjh.created_by = fu.user_id
AND gjh.je_batch_id = :transactionId
)
) emp_hy
,(SELECT employee_id
FROM gl_authorization_limits_v galv
WHERE EXISTS (SELECT 1
FROM gl_je_headers gjh
WHERE gjh.je_batch_id = :transactionId --7804964
AND galv.ledger_id = gjh.ledger_id
AND galv.authorization_limit = gjh.running_total_dr
)
) gl_au
WHERE gl_au.employee_id = emp_hy.person_id
ORDER BY emp_hy.seq
Oracle AME动态查询输出列''person_id:'|| emp_hy.person_id'是正确的,请让我知道Oracle Applications R12。 GL Journal申请批准