RD_CUST_SITE_VW(SQL View) |
Index Back |
---|---|
Sites for a Business ContactThis is a view lists all the sites for a Business Contact. |
SELECT A.BO_ID_1 , A.ROLE_TYPE_ID_1 , A.BO_ID_2 , A.ROLE_TYPE_ID_2 , A.START_DT , A.END_DT , A.BO_REL_ID , D.SETID , D.SITE_ID , D.SITE_TYP_ID , D.SITE_RESTRICTIONS , C.BO_NAME , C.BO_NAME_AC , %Substring(E.CM_CONCAT, 1, 80) , A.BO_REL_ID FROM PS_BO_REL A , PS_BO_REL_CAT_ITEM B , PS_BO_NAME C , PS_RD_SITE D , PS_BO_SRCH_ADD E WHERE A.REL_TYPE_ID = B.REL_TYPE_ID AND B.BO_REL_CATEGORY_ID = 4 AND BO_ID_2 = D.BO_ID AND D.BO_ID = C.BO_ID AND C.PRIMARY_IND = 'Y' AND E.BO_ID = C.BO_ID AND E.ROLE_TYPE_ID = 3 AND E.PRIMARY_IND = 'Y' AND E.CM_USE_START_DT <= %CurrentDateIn AND E.CM_USE_END_DT > %CurrentDateIn AND A.START_DT <= %CurrentDateIn AND A.END_DT > %CurrentDateIn AND NOT EXISTS( SELECT 'X' FROM PS_RDFSITE G WHERE G.SETID = D.SETID AND G.SITE_ID = D.SITE_ID AND SERVICE_LOC_SW = 'Y') |
# | 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 | ROLE_TYPE_ID_SITE | Number(12,0) | DECIMAL(12) NOT NULL | Role Type ID |
5 | START_DT | Date(10) | DATE | Start date field to store start date value. |
6 | END_DT | Date(10) | DATE | This field stores the end date values. |
7 | BO_REL_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Relationship ID of a Business Object |
8 | SETID | Character(5) | VARCHAR2(5) NOT NULL | This field is used to store the value of SetID on various setup tables. |
9 | SITE_ID | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. |
10 | SITE_TYP_ID | Character(5) | VARCHAR2(5) NOT NULL | Site Type identifier |
11 | SITE_RESTRICTIONS | Long Character | CLOB | Site Restrictions |
12 | BO_NAME | Character(50) | VARCHAR2(50) NOT NULL | Name Description of Business Object |
13 | BO_NAME_AC | Character(50) | VARCHAR2(50) NOT NULL | Name Description of Business Object |
14 | ADDRESS_DESCR80 | Character(80) | VARCHAR2(80) NOT NULL | this address is 80 chars long........ |
15 | BO_REL_ID_SITE | Number(31,0) | DECIMAL(31) NOT NULL | bo_rel_id_site |