RD_SITE_PARENT(SQL View) |
Index Back |
---|---|
Parent Site ViewView containing a list of Parent Sites. |
SELECT A.SETID , A.SITE_ID , A.BO_ID , A.BO_ID_PARENT , CASE WHEN EXISTS ( SELECT 'X' FROM PS_BO_NAME B WHERE B.BO_ID = A.BO_ID_PARENT ) THEN ( SELECT C.BO_NAME FROM PS_BO_NAME C WHERE C.BO_ID = A.BO_ID_PARENT AND C.PRIMARY_IND = 'Y' ) ELSE ' ' END, CASE WHEN EXISTS ( SELECT 'X' FROM PS_BO_NAME B WHERE B.BO_ID = A.BO_ID_PARENT ) THEN ( SELECT C.BO_NAME_UPPER FROM PS_BO_NAME C WHERE C.BO_ID = A.BO_ID_PARENT AND C.PRIMARY_IND = 'Y' ) ELSE ' ' END, CASE WHEN EXISTS ( SELECT 'X' FROM PS_BC D WHERE D.BO_ID = A.BO_ID_PARENT ) THEN ( SELECT E.CUST_ID FROM PS_BC E WHERE E.BO_ID = A.BO_ID_PARENT ) ELSE ' ' END FROM PS_RD_SITE A |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | This field is used to store the value of SetID on various setup tables. |
2 | 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. |
3 | BO_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID |
4 | BO_ID_PARENT | Number(31,0) | DECIMAL(31) NOT NULL | Business Object ID of the Parent Company. |
5 | BO_NAME_PARENT | Character(50) | VARCHAR2(50) NOT NULL | Name Description of Business Object |
6 | BO_NAME_UPPER | Character(50) | VARCHAR2(50) NOT NULL | Name Description of Business Object |
7 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Customer ID |