TRN_COMP_BUS_VW

(SQL View)
Index Back

Company - Bus View

This View is used to Retrieve company based on the Business Unit and Budget Period.

SELECT DISTINCT C.BUDGET_PERIOD ,C.BUSINESS_UNIT ,D.COMPANY ,D.DESCR FROM PS_JOB A , PS_BUDGET_PERIOD B , PS_BUDGET_BUS_UNIT C , PS_COMPANY_TBL D WHERE A.BUSINESS_UNIT=C.BUSINESS_UNIT AND B.BUDGET_PERIOD=C.BUDGET_PERIOD AND A.COMPANY=D.COMPANY AND A.EFFDT=( SELECT MAX(A1.EFFDT) FROM PS_JOB A1 WHERE A1.EMPLID=A.EMPLID AND A1.EMPL_RCD=A.EMPL_RCD AND A1.EFFSEQ=A.EFFSEQ AND A1.EFFDT <=B.THRU_DATE) AND A.EFFSEQ = ( SELECT MAX(A2.EFFSEQ) FROM PS_JOB A2 WHERE A.EMPLID = A2.EMPLID AND A.EMPL_RCD = A2.EMPL_RCD AND A.EFFDT = A2.EFFDT ) AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_COMPANY_TBL D1 WHERE D1.COMPANY=D.COMPANY AND D1.EFFDT<=B.THRU_DATE AND D1.EFF_STATUS='A')

  • Related Language Record: TRN_COBU_LNG_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUDGET_PERIOD Character(10) VARCHAR2(10) NOT NULL Budget Period
    2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    3 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
    4 DESCR Character(30) VARCHAR2(30) NOT NULL Description