IN_BU_LOC_VW(SQL View) |
Index Back |
---|---|
View of Location by BU |
SELECT A.BUSINESS_UNIT ,B.LOCATION ,B.DESCR FROM PS_BUS_UNIT_TBL_IN A , PS_LOCATION_TBL B , PS_SET_CNTRL_REC C WHERE A.LOCATION = B.LOCATION AND C.SETCNTRLVALUE = A.BUSINESS_UNIT AND C.RECNAME = 'LOCATION_TBL' AND C.SETID = B.SETID AND B.EFF_STATUS = 'A' AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_LOCATION_TBL B1 WHERE B1.SETID = B.SETID AND B1.LOCATION = B.LOCATION AND B1.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |