CONS_USG_CRT_VW

(SQL View)
Index Back

Consumer Usage - Consumer Prom

Consumer Usage Maintenance - Consumer Prompt Table

SELECT DISTINCT A.BUSINESS_UNIT , A.LOCATION , B.DESCR FROM PS_USAGE_INV A , PS_LOCATION_TBL B WHERE B.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_LOCATION_TBL C WHERE C.SETID = ( SELECT D.SETID FROM PS_SET_CNTRL_REC D WHERE D.SETCNTRLVALUE = A.BUSINESS_UNIT AND D.RECNAME = 'MASTER_ITEM_TBL' ) AND C.EFFDT <= %CurrentDateIn AND C.EFF_STATUS = 'A' AND C.LOCATION = A.LOCATION) AND A.LOCATION = B.LOCATION

# 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