GM_PROPOSAL_VW5

(SQL View)
Index Back

Proposal View 5

View of business units in proposal with the same PI as current proposal. List excludes the current proposal.

select distinct a.business_unit, a.proposal_id, a.version_id, a1.business_unit from PS_GM_PROPOSAL a, PS_GM_PROPOSAL a1 where a.emplid = a1.emplid and (a.business_unit <> a1.business_unit or (a.business_unit = a1.business_unit and a.proposal_id <>a1.proposal_id) or (a.business_unit = a1.business_unit and a.proposal_id = a1.proposal_id and a.version_id <> a1.version_id) )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 PROPOSAL_ID Character(25) VARCHAR2(25) NOT NULL Proposal ID
3 VERSION_ID Character(7) VARCHAR2(7) NOT NULL Version ID
4 BUSINESS_UNIT_PROP Character(5) VARCHAR2(5) NOT NULL Proposal Business Unit