RF_COMPSITE2_VW(SQL View) |
Index Back |
---|---|
Sites for a Business ContactCopy of RD_COMPSITE2_VW, except the first column in the field list is SETID_WRK, not SETID. This is because the provider group component is keyed by SETID and so RD_COMPSITE2_VW will only return the sites for a customer if it happens to have the same setid as the provider group. 05/19/03: Update view text to match RD_COMPSITE_VW. |
SELECT DISTINCT A.SETID , C.BO_ID , A.SITE_ID , C.BO_NAME , E.BO_NAME FROM PS_RD_SITE A , PS_BO C , PS_BO_REL D , PS_BO_NAME E WHERE D.REL_TYPE_ID IN (4, 17) AND D.BO_ID_1 = C.BO_ID AND D.BO_ID_2 = A.BO_ID AND D.BO_ID_1 = C.BO_ID AND A.BO_ID = E.BO_ID AND D.ROLE_TYPE_ID_2 = 3 AND D.ROLE_TYPE_ID_1 IN (2,9) AND E.PRIMARY_IND = 'Y' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID_WRK | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | BO_ID_CUST | Number(31,0) | DECIMAL(31) NOT NULL | This field stores the Business Object ID for the customer. |
3 | 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.
Prompt Table: RD_SITE |
4 | BO_NAME_DISPLAY | Character(80) | VARCHAR2(80) NOT NULL | Full name of the Business Object |
5 | BO_NAME | Character(50) | VARCHAR2(50) NOT NULL | Name Description of Business Object |