BO_HIER_REL_VW2(SQL View) |
Index Back |
---|---|
Hierarchical Relationship |
SELECT C.BO_ID , A.BO_REL_ID , C.BO_NAME , E.DESCR , E.ROLE_TYPE_ID , B.REL_TYPE_ID , B.DESCR , D.BO_ID , D.BO_NAME , F.DESCR , F.ROLE_TYPE_ID , G.PARTICIPATION_PCT FROM PS_BO_REL A , PS_BO_REL_TYPE B , PS_BO C , PS_BO D , PS_BO_ROLE_TYPE E , PS_BO_ROLE_TYPE F , PS_RB_OWNERSHIP G WHERE A.REL_TYPE_ID = B.REL_TYPE_ID AND B.HIERARCHICAL_IND = 'Y' AND A.BO_ID_1 = C.BO_ID AND A.BO_ID_2 = D.BO_ID AND A.ROLE_TYPE_ID_1 = E.ROLE_TYPE_ID AND B.ROLE_TYPE_ID_2 = F.ROLE_TYPE_ID AND C.BO_ID = G.BO_ID AND A.BO_REL_ID = G.BO_REL_ID AND A.START_DT <= %CurrentDateIn AND A.END_DT > %CurrentDateIn |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | PARENT_BO_ID | Number(31,0) | DECIMAL(31) NOT NULL | Business Object ID |
2 | BO_REL_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Relationship ID of a Business Object |
3 | PARENT_BO_NAME | Character(50) | VARCHAR2(50) NOT NULL | Business Object1 Name |
4 | PARENT_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Parent Asset Description |
5 | PARENT_ROLE_TYPEID | Number(12,0) | DECIMAL(12) NOT NULL | Role Type ID |
6 | REL_TYPE_ID | Number(12,0) | DECIMAL(12) NOT NULL | Relationship Type ID |
7 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
8 | CHILD_BO_ID | Number(31,0) | DECIMAL(31) NOT NULL | Business Object ID |
9 | CHILD_BO_NAME | Character(50) | VARCHAR2(50) NOT NULL | Business Object1 Name |
10 | CHILD_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Parent Asset Description |
11 | CHILD_ROLE_TYPEID | Number(12,0) | DECIMAL(12) NOT NULL | Role Type ID |
12 | PARTICIPATION_PCT | Number(9,2) | DECIMAL(8,2) NOT NULL | Participation Percentage |