RD_ABE_PHONE_VW(SQL View) |
Index Back |
---|---|
First ABE Phone viewThis is the First Phone in the first ABE for a BO view. |
SELECT A.BO_ID , A.PROFILE_CM_SEQ , B.PHONE , B.CM_CONCAT , B.CM_CONCAT_UPPER FROM PS_BO_CM A , PS_CM B , PS_BO_ABE_DTL C WHERE A.BO_ID = C.BO_ID AND A.PROFILE_CM_SEQ = C.PROFILE_CM_SEQ AND C.ABE_SEQ = 1 AND A.CM_TYPE_ID = 2 AND A.BO_CM_START_DT <= %CurrentDateIn AND A.BO_CM_END_DT > %CurrentDateIn AND B.CM_ID = A.CM_ID AND A.PROFILE_CM_SEQ = ( SELECT MIN(D.PROFILE_CM_SEQ) FROM PS_BO_SRCH_PHN D WHERE D.BO_ID = A.BO_ID AND D.BO_CM_START_DT <= %CurrentDateIn AND D.BO_CM_END_DT > %CurrentDateIn ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BO_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID |
2 | PROFILE_CM_SEQ | Number(31,0) | DECIMAL(31) NOT NULL | The Contact Method Profile ID is a key field that is used to reference the details of a Contact Method in various CM tables. |
3 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | This field stores the Telephone number. |
4 | CM_CONCAT | Character(100) | VARCHAR2(100) NOT NULL | Concatenated Contact Method |
5 | CM_CONCAT_UPPER | Character(100) | VARCHAR2(100) NOT NULL | Uppper Concatenated Contact Method |