RC_CUST_SITE_VW(SQL View) |
Index Back |
---|---|
Sites for a Business ContactSites for a Primary Business Contact. |
SELECT A.BO_ID_1 , A.ROLE_TYPE_ID_1 , C.BO_ID , D.BO_NAME , D.BO_NAME_AC , C.SETID , A.START_DT , A.END_DT , A.BO_REL_ID FROM PS_BO_REL A , PS_BO_REL_CAT_ITEM B , PS_RD_SITE C , PS_BO_NAME D , PS_BO E WHERE A.REL_TYPE_ID = B.REL_TYPE_ID AND B.BO_REL_CATEGORY_ID = 4 AND A.BO_ID_2 = C.BO_ID AND C.BO_ID = D.BO_ID AND D.PRIMARY_IND = 'Y' AND C.BO_ID = E.BO_ID AND E.MERGE_STATUS <> 'I' AND A.START_DT <= %CurrentDateIn AND A.END_DT > %CurrentDateIn |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BO_ID_CUST | Number(31,0) | DECIMAL(31) NOT NULL | This field stores the Business Object ID for the customer. |
2 | ROLE_TYPE_ID_CUST | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the customer |
3 | BO_ID_SITE | Number(31,0) | DECIMAL(31) NOT NULL | Business Object ID |
4 | BO_NAME | Character(50) | VARCHAR2(50) NOT NULL | Name Description of Business Object |
5 | BO_NAME_AC | Character(50) | VARCHAR2(50) NOT NULL | Name Description of Business Object |
6 | SETID | Character(5) | VARCHAR2(5) NOT NULL | This field is used to store the value of SetID on various setup tables. |
7 | START_DT | Date(10) | DATE | Start date field to store start date value. |
8 | END_DT | Date(10) | DATE | This field stores the end date values. |
9 | BO_REL_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Relationship ID of a Business Object |