SQL-004 Policy period anniversary rate date
Retrieves the anniversary rate date for a policy period by checking both the standard POLICY_PERIOD table and the parallel POLICY_PERIOD_NON_WCIS table via UNION, consumed by PolicyInformation.AnniversaryRateDate.
Classification
Field
Value
SQL ID
SQL-004
Operation type
Read
Execution method
Inline SQL, string-concatenation via SQL.PolicyPeriodARD
Database
Oracle
Schema
[unqualified]**
Command type
Text
Business object
N/A (Application layer)
Criteria property
N/A
Lifecycle method
N/A
Application class
PolicyInformation (property AnniversaryRateDate, Get)
Parameters
Parameter
Direction
Type
Max length
Description
:in_policy_num
Input
Decimal (inPolicyNumber)
N/A
Policy number filter, applied to both halves of the UNION.
:in_policy_period_eff_date
Input
Date (inPolicyPeriodEffectiveDate)
N/A
Policy-period effective date filter, applied to both halves of the UNION.
Tables
Table
Access
Columns used
POLICY_PERIOD
SELECT
ANNIVERSARY_RATE_DATE, POLICY_NUM, POLICY_PERIOD_EFF_DATE
POLICY_PERIOD_NON_WCIS
SELECT
ANNIVERSARY_RATE_DATE, POLICY_NUM, POLICY_PERIOD_EFF_DATE
Sample SQL
Select anniversary_rate_date
from policy_period pp
where policy_num = : in_policy_num
and policy_period_eff_date = : in_policy_period_eff_date
Union
Select anniversary_rate_date
from policy_period_non_wcis pp
where policy_num = : in_policy_num
and policy_period_eff_date = : in_policy_period_eff_date
Reconstructed from "..." + _ string concatenation in PolicyInformation.SQL.PolicyPeriodARD.
Operations and processes
Sources
SAIF.Business.Policy\PolicyInformation.vb