SQL-039: Retrieve clsRatingPlanFactor data
This document records the SQL used by clsRatingPlanFactor in SAIF.Business.Policy.Rating.
Classification
Field
Value
SQL ID
SQL-039
Operation type
Read
Execution method
Data portal — criteria SQL
Database
Oracle
Schema
[unqualified]**
Command type
Text
Business object
clsRatingPlanFactor
Criteria property
RetrieveSQL
Lifecycle method
BeforeRetrieve / AfterRetrieve
Parameters
Parameter
Direction
Type
Max length
Description
:Code
Input
Not specified
not specified
Bound parameter.
:EffectiveDate
Input
Not specified
not specified
Bound parameter.
Tables
Table
Access
Columns used
RATING_PLAN_FACTOR
SELECT
See sample SQL and source for column usage.
Sample SQL
Select
RATING_PLAN_FACTOR . RATING_PLAN_CODE as Code ,
RATING_PLAN_FACTOR . RATING_PLAN_FACTOR_EFF_DATE as EffectiveDate ,
RATING_PLAN_FACTOR . RATING_PLAN_LOW_FACTOR as LowerLimit ,
RATING_PLAN_FACTOR . RATING_PLAN_HIGH_FACTOR as UpperLimit ,
RATING_PLAN_FACTOR . RATING_PLAN_FACTOR_EXP_DATE as ExpirationDate ,
RATING_PLAN_FACTOR . NCCI_STAT_CODE as NCCIStatCode ,
RATING_PLAN_FACTOR . MAXIMUM_ADJUSTMENT_AMOUNT as MaximumAdjustmentAmount
From
RATING_PLAN_FACTOR
Where
RATING_PLAN_FACTOR . RATING_PLAN_CODE = : Code
AND RATING_PLAN_FACTOR . RATING_PLAN_FACTOR_EFF_DATE <= : EffectiveDate
AND (
RATING_PLAN_FACTOR . RATING_PLAN_FACTOR_EXP_DATE > : EffectiveDate
OR RATING_PLAN_FACTOR . RATING_PLAN_FACTOR_EXP_DATE IS NULL )
Operations and processes
Business rules
Note: Statements marked with * were inferred from code structure, naming conventions, or
contextual evidence where direct confirmation was not available in source artifacts. Statements
marked with ** could not be confirmed; treat as unknown until verified.
Sources
Business\SAIF.Business.Policy.Rating\clsRatingPlanFactor.vb:449-457