Search Results cn_calc_sql_exps_all
Overview
CN_CALC_SQL_EXPS_ALL is a transactional configuration table in the Oracle Incentive Compensation (CN) module of Oracle E-Business Suite, valid in both 12.1.1 and 12.2.2. It stores the SQL expressions consumed by the Incentive Compensation calculation engine during the calculation process. Each row defines a reusable, named SQL expression—composed of a SELECT clause, a FROM clause, and an associated display expression—that the calculation engine resolves at runtime to derive computed values for participants, transactions, credits, and compensation results. Administrators and implementers maintain these definitions to avoid hard-coding business logic, allowing the calculation process to retrieve derived metrics such as attainment, quota ratios, or custom earning formulas.
From a Data Vault modeling perspective, the mined heuristic classification for this table is standalone. It neither behaves as a pure hub, link, nor satellite in the mined relationship graph; it is best treated as a reference or configuration entity that anchors expression definitions consumed downstream by calculation logic. Multi-organization support is handled through ORG_ID, and security partitioning is enforced through SECURITY_GROUP_ID.
Key Information Stored
The table is owned by the CN schema and contains 35 documented columns. The most significant are described below.
- CALC_SQL_EXP_ID — the surrogate primary key. It is enforced by the unique index CN_CALC_SQL_EXPS_U1 and uniquely identifies each SQL expression definition.
- NAME — the business identifier for the expression. Together with ORG_ID it forms the business-key candidate enforced by unique index CN_CALC_SQL_EXPS_U2.
- ORG_ID — the operating unit/org context, used both for the business key and for multi-org data segregation.
- DESCRIPTION — free-text description of the expression’s purpose.
- STATUS — indicates whether the expression is active and available for use in calculation.
- EXP_TYPE_CODE — classifies the expression type, governing how the engine interprets and applies it.
- EXPRESSION_DISP — the display form of the expression shown to users.
- SQL_SELECT — the SELECT portion of the underlying SQL.
- SQL_FROM — the FROM portion of the underlying SQL.
- PIPED_SQL_SELECT / PIPED_SQL_FROM — pipelined variants of the SELECT and FROM clauses used for set-based expression processing.
- PIPED_EXPRESSION_DISP — the display form of the piped expression.
- SECURITY_GROUP_ID — foreign key to FND_SECURITY_GROUPS controlling row-level access.
- OBJECT_VERSION_NUMBER — optimistic locking column used by the AOL/BC4J framework.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — standard audit columns.
Fifteen ATTRIBUTE (ATTRIBUTE_CATEGORY and ATTRIBUTE1 through ATTRIBUTE15) columns provide the standard EBS descriptive-flexfield extension area. Six system-managed LOB indexes (SYS_IL0000107485C00007$$ through C00012$$) exist on the CLOB-backed expression columns.
Common Use Cases and Queries
Typical usage centers on auditing, cloning, and troubleshooting calculation logic.
- Listing all active expressions for an operating unit:
SELECT CALC_SQL_EXP_ID, NAME, EXP_TYPE_CODE, SQL_SELECT, SQL_FROM FROM CN.CN_CALC_SQL_EXPS_ALL WHERE ORG_ID = :p_org AND STATUS = 'A'; - Locating an expression by business key: filter on NAME and ORG_ID, which map to the CN_CALC_SQL_EXPS_U2 unique index.
- Reviewing piped versus non-piped definitions by comparing SQL_SELECT/SQL_FROM against PIPED_SQL_SELECT/PIPED_SQL_FROM and PIPED_EXPRESSION_DISP.
- Detecting maintenance activity through LAST_UPDATED_BY and LAST_UPDATE_DATE for change-audit reporting.
- Security-scoped reporting by joining SECURITY_GROUP_ID to FND_SECURITY_GROUPS.
Because expression text is stored in LOB columns, extraction queries should account for CLOB handling when exporting definitions for migration or documentation.
Related Objects
The mined foreign-key relationship identifies FND_SECURITY_GROUPS as a direct reference target, joined via SECURITY_GROUP_ID. Functionally, the following objects are most significant to its use:
- FND_SECURITY_GROUPS — referenced by CN_CALC_SQL_EXPS_ALL.SECURITY_GROUP_ID for security partitioning.
- CN_CALC_FORMULAS_ALL — calculation formulas that consume SQL expression definitions during computation.
- CN_CALC_METHODS_ALL — calculation methods that orchestrate expressions within the calculation run.
- CN_PLANS_ALL — plan definitions whose calculation processes reference these expressions.
- CN_PARTICIPANTS_ALL — participants for whom computed expression results are produced.
- CN_CALC_RSLTS_ALL — calculated results populated using the resolved SQL expressions.
These relationships reflect the functional dependency chain of the Incentive Compensation calculation engine, in which CN_CALC_SQL_EXPS_ALL serves as the centralized repository of SQL-driven expression logic.
-
Table: CN_CALC_SQL_EXPS_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_CALC_SQL_EXPS_ALL, object_name:CN_CALC_SQL_EXPS_ALL, status:VALID, product: CN - Incentive Compensation , description: This table contains the sql expressions used in calculation process. , implementation_dba_data: CN.CN_CALC_SQL_EXPS_ALL ,
-
Table: CN_CALC_SQL_EXPS_ALL
12.2.2
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_CALC_SQL_EXPS_ALL, object_name:CN_CALC_SQL_EXPS_ALL, status:VALID, product: CN - Incentive Compensation , description: This table contains the sql expressions used in calculation process. , implementation_dba_data: CN.CN_CALC_SQL_EXPS_ALL ,
-
SYNONYM: APPS.CN_CALC_SQL_EXPS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_CALC_SQL_EXPS_ALL, status:VALID,
-
SYNONYM: APPS.CN_CALC_SQL_EXPS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_CALC_SQL_EXPS_ALL, status:VALID,
-
VIEW: CN.CN_CALC_SQL_EXPS_ALL#
12.2.2
owner:CN, object_type:VIEW, object_name:CN_CALC_SQL_EXPS_ALL#, status:VALID,
-
VIEW: CN.CN_CALC_SQL_EXPS_ALL#
12.2.2
-
APPS.CN_UPGRADE_PE_FORMULA_PKG SQL Statements
12.1.1
-
APPS.CN_FORMULA_GEN_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.CN_UPGRADE_PE_FORMULA_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_UPGRADE_PE_FORMULA_PKG, status:VALID,
-
APPS.CN_UPGRADE_PE_FORMULA_PKG SQL Statements
12.2.2
-
SYNONYM: APPS.CN_CALC_SQL_EXPS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_CALC_SQL_EXPS, status:VALID,
-
APPS.CN_FORMULA_GEN_PKG SQL Statements
12.1.1
-
TABLE: CN.CN_CALC_SQL_EXPS_ALL
12.2.2
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_CALC_SQL_EXPS_ALL, object_name:CN_CALC_SQL_EXPS_ALL, status:VALID,
-
TABLE: CN.CN_CALC_SQL_EXPS_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_CALC_SQL_EXPS_ALL, object_name:CN_CALC_SQL_EXPS_ALL, status:VALID,
-
PACKAGE BODY: APPS.CN_PLANCOPY_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PLANCOPY_UTIL_PVT, status:VALID,
-
PACKAGE BODY: APPS.CN_UPGRADE_PE_FORMULA_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_UPGRADE_PE_FORMULA_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_COMP_PLAN_XMLCOPY_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_COMP_PLAN_XMLCOPY_PVT, status:VALID,
-
TABLE: CN.CN_RATE_DIM_TIERS_ALL
12.2.2
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_RATE_DIM_TIERS_ALL, object_name:CN_RATE_DIM_TIERS_ALL, status:VALID,
-
PACKAGE BODY: APPS.CN_FORMULA_GEN_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_FORMULA_GEN_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_FORMULA_GEN_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_FORMULA_GEN_PKG, status:VALID,
-
TABLE: CN.CN_FORMULA_INPUTS_ALL
12.2.2
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_FORMULA_INPUTS_ALL, object_name:CN_FORMULA_INPUTS_ALL, status:VALID,
-
TABLE: CN.CN_FORMULA_INPUTS_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_FORMULA_INPUTS_ALL, object_name:CN_FORMULA_INPUTS_ALL, status:VALID,
-
PACKAGE BODY: APPS.CN_FORMULA_COMMON_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_FORMULA_COMMON_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_PLANCOPY_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PLANCOPY_UTIL_PVT, status:VALID,
-
SYNONYM: APPS.CN_CALC_SQL_EXPS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_CALC_SQL_EXPS, status:VALID,
-
PACKAGE BODY: APPS.CN_FORMULA_COMMON_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_FORMULA_COMMON_PKG, status:VALID,
-
TABLE: CN.CN_RATE_DIM_TIERS_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_RATE_DIM_TIERS_ALL, object_name:CN_RATE_DIM_TIERS_ALL, status:VALID,
-
PACKAGE BODY: APPS.CN_COMP_PLAN_XMLCOPY_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_COMP_PLAN_XMLCOPY_PVT, status:VALID,
-
12.2.2 FND Design Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
TABLE: CN.CN_CALC_FORMULAS_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_CALC_FORMULAS_ALL, object_name:CN_CALC_FORMULAS_ALL, status:VALID,
-
TABLE: CN.CN_CALC_FORMULAS_ALL
12.2.2
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_CALC_FORMULAS_ALL, object_name:CN_CALC_FORMULAS_ALL, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 FND Design Data
12.1.1
-
APPS.CN_PLANCOPY_UTIL_PVT SQL Statements
12.1.1
-
PACKAGE BODY: APPS.CN_UPGRADE_PE_FORMULA_PKG
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.CN_UPGRADE_PE_FORMULA_PKG
12.1.1
-
APPS.CN_PLANCOPY_UTIL_PVT SQL Statements
12.2.2
-
APPS.CN_COMP_PLAN_XMLCOPY_PVT SQL Statements
12.1.1
-
APPS.CN_FORMULA_GEN_PKG dependencies on CN_CALC_SQL_EXPS_ALL
12.2.2
-
APPS.CN_PLANCOPY_UTIL_PVT dependencies on CN_CALC_SQL_EXPS_ALL
12.2.2
-
PACKAGE BODY: APPS.CN_FORMULA_GEN_PKG
12.2.2
-
APPS.CN_COMP_PLAN_XMLCOPY_PVT dependencies on CN_CALC_SQL_EXPS_ALL
12.1.1
-
APPS.CN_COMP_PLAN_XMLCOPY_PVT dependencies on CN_CALC_SQL_EXPS_ALL
12.2.2