SCC_RULE_CAL4VL(SQL View) |
Index Back |
---|---|
Rules Engine CalculationsThis related view is used for generating reports on the rules engine using BI Publisher |
SELECT A.SCC_RULE_ID , A.SCC_RULE_VERSION , A.SCC_RULE_SEQNUM , A.SCC_RULE_STMT_SEQ , BL.LANGUAGE_CD , BL.SCC_RULE_STMT_NAME , XL.XLATLONGNAME , XXL.XLATLONGNAME , XXXL.XLATLONGNAME FROM PS_SCC_RULE_CALC A , PS_SCC_RULE_ST_TBL B , PS_SCC_RULE_ST_LNG BL , PSXLATITEM X , PSXLATITEMLANG XL , PSXLATITEM XX , PSXLATITEMLANG XXL , PSXLATITEM XXX , PSXLATITEMLANG XXXL WHERE A.SCC_RULE_STATEMENT = B.SCC_RULE_STATEMENT AND X.FIELDNAME = 'SCC_RULE_FLEX_TYP1' AND X.FIELDVALUE = A.SCC_RULE_FLEX_TYP1 AND X.EFFDT = ( SELECT MAX(X1.EFFDT) FROM PSXLATITEM X1 WHERE X1.FIELDNAME = X.FIELDNAME AND X1.FIELDVALUE = X.FIELDVALUE AND X1.EFFDT <= %CurrentDateIn AND X1.EFF_STATUS = 'A') AND XX.FIELDNAME = 'SCC_RULE_OPERATOR' AND XX.FIELDVALUE = A.SCC_RULE_OPERATOR AND XX.EFFDT = ( SELECT MAX(XX1.EFFDT) FROM PSXLATITEM XX1 WHERE XX1.FIELDNAME = XX.FIELDNAME AND XX1.FIELDVALUE = XX.FIELDVALUE AND XX1.EFFDT <= %CurrentDateIn AND XX1.EFF_STATUS = 'A') AND XXX.FIELDNAME = 'SCC_RULE_FLEX_TYP2' AND XXX.FIELDVALUE = A.SCC_RULE_FLEX_TYP2 AND XXX.EFFDT = ( SELECT MAX(XXX1.EFFDT) FROM PSXLATITEM XXX1 WHERE XXX1.FIELDNAME = XXX.FIELDNAME AND XXX1.FIELDVALUE = XXX.FIELDVALUE AND XXX1.EFFDT <= %CurrentDateIn AND XXX1.EFF_STATUS = 'A') AND B.SCC_RULE_STATEMENT = BL.SCC_RULE_STATEMENT AND X.FIELDNAME = XL.FIELDNAME AND X.FIELDVALUE = XL.FIELDVALUE AND X.EFFDT = XL.EFFDT AND XL.LANGUAGE_CD = BL.LANGUAGE_CD AND XX.FIELDNAME = XXL.FIELDNAME AND XX.FIELDVALUE = XXL.FIELDVALUE AND XX.EFFDT = XXL.EFFDT AND XXL.LANGUAGE_CD = BL.LANGUAGE_CD AND XXX.FIELDNAME = XXXL.FIELDNAME AND XXX.FIELDVALUE = XXXL.FIELDVALUE AND XXX.EFFDT = XXXL.EFFDT AND XXXL.LANGUAGE_CD = BL.LANGUAGE_CD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SCC_RULE_ID | Character(40) | VARCHAR2(40) NOT NULL | This field is the Rule ID for rules used in the Rules Engine |
2 | SCC_RULE_VERSION | Number(3,0) | SMALLINT NOT NULL | This field is the version of a rule or rule group in the rules engine. |
3 | SCC_RULE_SEQNUM | Number(4,0) | SMALLINT NOT NULL | This field is a sequence number used to create a unqiue key in the Rules Engine setup |
4 | SCC_RULE_STMT_SEQ | Number(3,0) | SMALLINT NOT NULL | This field is used as a unique key for unique statement ids for the rules engine. |
5 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
6 | SCC_RULE_STMT_NAME | Character(30) | VARCHAR2(30) NOT NULL | This field is the name of the statement used in the rule engine. |
7 | SCC_RULE_FL1_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This field is used for the rules engine report for the rule flex type description |
8 | SCC_RULE_OPR_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This field is used for the rules engine report for the operator description |
9 | SCC_RULE_FL2_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This field is used for the rules engine report for the rule flex type description |