ORG_EMP_PAY_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT A.BUSINESS_UNIT ,A.COMMON_ID ,A.SA_ID_TYPE ,B.PAYMENT_ID_NBR ,B.ITEM_NBR_PAYMENT ,A.CONTRACT_NUM ,A.CONTRACT_EMPLID FROM PS_ITEM_SF A ,PS_ITEM_XREF B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.COMMON_ID = B.COMMON_ID AND A.SA_ID_TYPE = B.SA_ID_TYPE AND A.ITEM_NBR = B.ITEM_NBR_CHARGE AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_ITEM_XREF B1 WHERE B.BUSINESS_UNIT = B1.BUSINESS_UNIT AND B.COMMON_ID = B1.COMMON_ID AND B.SA_ID_TYPE = B1.SA_ID_TYPE AND B.ITEM_NBR_CHARGE = B1.ITEM_NBR_CHARGE AND B.ITEM_NBR_PAYMENT = B1.ITEM_NBR_PAYMENT) AND B.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | COMMON_ID | Character(11) | VARCHAR2(11) NOT NULL | Common ID to store Personal ID / Ext Org ID value |
3 | SA_ID_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
ID Type
O=Organization P=Person |
4 | PAYMENT_ID_NBR | Number(12,0) | DECIMAL(12) NOT NULL | Payment ID Nbr |
5 | ITEM_NBR | Character(15) | VARCHAR2(15) NOT NULL | Item Nbr |
6 | CONTRACT_NUM | Character(25) | VARCHAR2(25) NOT NULL | Contract Number |
7 | CONTRACT_EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Contract ID |