0% found this document useful (0 votes)
26 views

Projects Query

The document provides a SQL query to retrieve details of key members involved in a specific project from the Oracle R12 Application. It includes columns for project number, project name, key member names, and their positions. The query filters data based on various conditions related to project status and member effectiveness dates.

Uploaded by

krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Projects Query

The document provides a SQL query to retrieve details of key members involved in a specific project from the Oracle R12 Application. It includes columns for project number, project name, key member names, and their positions. The query filters data based on various conditions related to project status and member effectiveness dates.

Uploaded by

krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

This query will help you to get project key members details with following columns

like project number, project name, key members name and key members position in
Oracle R12 Application.

SELECT ppa.segment1 project_num


, ppa.name project_name
, papf.full_name Key_member
, pprtt.meaning position
FROM pa.pa_project_parties papp
, pa.pa_projects_all ppa
, pa.pa_project_role_types_tl pprtt
, pa.pa_project_role_types_b pprtb
, pa.pa_project_statuses pps
, hr.per_all_people_f papf
, hr.per_all_assignments_f paaf
, hr.hr_locations_all hla
, hr.per_phones pp
, hr.hr_all_organization_units haou
WHERE ppa.project_id = papp.project_id
AND papp.resource_source_id = papf.person_id
AND PPRTT.PROJECT_ROLE_ID = PPRTB.PROJECT_ROLE_ID
AND pprtt.project_role_id = papp.project_role_id
AND ppa.project_status_code = pps.project_status_code
AND papf.person_id = paaf.person_id
AND paaf.location_id = hla.location_id(+)
AND papf.person_id = pp.parent_id(+)
AND ppa.carrying_out_organization_id = haou.organization_id
AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
AND SYSDATE BETWEEN papp.start_date_active AND NVL (papp.end_date_active,
SYSDATE)
AND NVL (pp.date_to, SYSDATE + 1) > SYSDATE
and pprtt.language = 'US'
and ppa.segment1 ='00100001'
group by
ppa.segment1
, ppa.name
, papf.full_name
, pprtt.meaning
order by ppa.segment1;

You might also like