SAD_BPVLOC_SRCH

(SQL View)
Index Back

BPV Location Search View

FS 03052004

SELECT A.EXT_ORG_ID , A.EFFDT , A.EFF_STATUS , C.OPRID , A.DESCR50 , A.DESCRSHORT FROM PS_EXT_ORG_TBL A , PS_SAD_BPV_ORG_NLD B ,PS_SCRTY_TBL_ACAD C WHERE A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_EXT_ORG_TBL A_ED WHERE A.EXT_ORG_ID = A_ED.EXT_ORG_ID AND A_ED.EFFDT <= %CurrentDateIn) AND A.EFF_STATUS='A' AND C.ACCESS_CD='Y' AND B.EXT_ORG_ID = A.EXT_ORG_ID AND EXISTS ( SELECT 'X' FROM PSTREENODE E WHERE E.SETID=' ' AND E.TREE_NAME='ACAD_ORGANIZATION' AND E.EFFDT=C.TREE_EFFDT AND E.TREE_NODE=B.ACAD_ORG AND E.TREE_NODE_NUM BETWEEN C.TREE_NODE_NUM AND C.TREE_NODE_NUM_END AND NOT EXISTS ( SELECT 'X' FROM PS_SCRTY_TBL_ACAD G WHERE C.OPRID=G.OPRID AND C.TREE_NODE_NUM<>G.TREE_NODE_NUM AND E.TREE_NODE_NUM BETWEEN G.TREE_NODE_NUM AND G.TREE_NODE_NUM_END AND G.TREE_NODE_NUM BETWEEN C.TREE_NODE_NUM AND C.TREE_NODE_NUM_END)) AND EXISTS( SELECT 'X' FROM PS_ORG_LOCATION F WHERE F.EXT_ORG_ID=A.EXT_ORG_ID)

  • Related Language Record: SADBPVORGSRCLNG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 EXT_ORG_ID Character(11) VARCHAR2(11) NOT NULL External Org ID

    Default Value: NEW

    2 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    3 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive

    Default Value: A

    4 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
    5 DESCR50 Character(50) VARCHAR2(50) NOT NULL Description of length 50
    6 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description