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

Projects Commitments Query

This SQL query selects data from two tables, PA_COMMITMENT_TXNS and PA_PROJECTS_ALL, where the Project_id field matches between the tables. It filters the results to only those rows where the segment1 field is equal to 'PP0016' and the project_id is in a subquery that filters for an org_id of 92517 from the PA_PROJECTS_ALL table.

Uploaded by

Priya Nimmagadda
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)
587 views

Projects Commitments Query

This SQL query selects data from two tables, PA_COMMITMENT_TXNS and PA_PROJECTS_ALL, where the Project_id field matches between the tables. It filters the results to only those rows where the segment1 field is equal to 'PP0016' and the project_id is in a subquery that filters for an org_id of 92517 from the PA_PROJECTS_ALL table.

Uploaded by

Priya Nimmagadda
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

SELECT PPA.

segment1,
PPA.project_id,
PCT.transaction_source,
PCT.CMT_number,
PCT.expenditure_item_date,
PCT.cmt_approved_flag,
PCT.expenditure_type,
PCT.acct_burdened_cost
FROM apps.PA_COMMITMENT_TXNS PCT, apps.PA_PROJECTS_ALL PPA
WHERE PPA.Project_id = PCT.Project_id
and PPA.segment1 = 'PP0016'
AND PPA.project_id IN (SELECT project_id
FROM apps.pa_projects_All
WHERE org_id = 92517)

You might also like