ORG_CNT_TYP_VW(SQL View) |
Index Back |
---|---|
Organization Contact Type ViewORG_CNT_TYP_VW is a view that has all the contacts and contact types. |
SELECT A.EXT_ORG_ID , A.ORG_CONTACT , A.EFFDT , A.EFF_STATUS , A.CONTACT_NAME , A.ORG_CONTACT_TYPE , B.DESCR FROM PS_ORG_CONTACT A , PS_ORG_CNT_TYP_TBL B WHERE A.ORG_CONTACT_TYPE = B.ORG_CONTACT_TYPE AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_ORG_CNT_TYP_TBL B1 WHERE B1.ORG_CONTACT_TYPE = B.ORG_CONTACT_TYPE AND B1.EFFDT <= %CurrentDateIn AND B1.EFF_STATUS = 'A') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EXT_ORG_ID | Character(11) | VARCHAR2(11) NOT NULL |
External Org ID
Prompt Table: EXT_ORG_TBL |
2 | ORG_CONTACT | Number(4,0) | SMALLINT NOT NULL | Contact Nbr |
3 | EFFDT | Date(10) | DATE | Effective Date |
4 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
5 | CONTACT_NAME | Character(50) | VARCHAR2(50) NOT NULL | Contact Name |
6 | ORG_CONTACT_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Contact Type
Prompt Table: ORG_CNT_TYP_TBL |
7 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |