EX_TOP_SPEND_VW(SQL View) |
Index Back |
---|---|
EX_TOP_SPEND_VWTop employees spenders Used in Query, Pivot Grid and Pagelet |
SELECT C.EMPLID , D.FIRST_NAME %Concat ' ' %Concat D.LAST_NAME , A.BUSINESS_UNIT_GL , C.DEPTID %Concat '-' %Concat E.DESCR , B.CURRENCY_CD , B.MONETARY_AMOUNT FROM PS_EX_SHEET_HDR A , PS_EX_SHEET_LINE B , PS_JOB C , PS_PERSONAL_DATA D , PS_DEPTID_BUGL_VW E WHERE A.SHEET_ID = B.SHEET_ID AND C.EMPLID = A.EMPLID AND C.EMPLID = D.EMPLID AND A.SETID = E.SETID AND C.DEPTID = E.DEPTID AND E.SETID = ( SELECT G.SETID FROM PS_SET_CNTRL_REC G WHERE G.SETCNTRLVALUE = A.BUSINESS_UNIT_GL AND G.REC_GROUP_ID = 'FS_06' AND G.RECNAME = 'DEPTID_BUGL_VW') AND %EffdtCheck(DEPTID_BUGL_VW, E, %CURRENTDATEIN ) AND E.EFF_STATUS = 'A' AND A.SHEET_STATUS NOT IN ('CLS', 'ESC','DEN','DNA','DNU','PND') AND B.PERSONAL_EXPENSE = 'N' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(11) | VARCHAR2(11) NOT NULL | Employee ID | |
2 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
3 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
4 | DESCR_DEPT | Character(45) | VARCHAR2(45) NOT NULL | Deptid + Description |
5 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
6 | MONETARY_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account. |