Skip to content

SQL-009 Policy period anniversary rate date

Retrieves a policy period's anniversary rate date, unioning the WCIS (POLICY_PERIOD) and non-WCIS (POLICY_PERIOD_NON_WCIS) stores, used by PolicyInformation.AnniversaryRateDate (BR-POL-010).

Classification

Field Value
SQL ID SQL-009
Operation type Read
Execution method Inline SQL (CommandType.Text, DataRequestType.Scalar)
Database Oracle
Schema [unqualified]**
Command type Text
Business object N/A (Application layer)
Criteria property N/A
Lifecycle method N/A
Application class PolicyInformation (SQL.PolicyPeriodARD, AnniversaryRateDate property getter)

Parameters

Parameter Direction Type Max length Description
:in_policy_num Input Decimal (Oracle NUMBER) N/A Policy number; applied to both branches of the UNION.
:in_policy_period_eff_date Input Date (Oracle DATE) N/A Policy period effective date; applied to both branches of the UNION.

Tables

Table Access Columns used
POLICY_PERIOD SELECT POLICY_NUM, POLICY_PERIOD_EFF_DATE, ANNIVERSARY_RATE_DATE
POLICY_PERIOD_NON_WCIS SELECT POLICY_NUM, POLICY_PERIOD_EFF_DATE, ANNIVERSARY_RATE_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

Operations and processes

Business rules

Sources

  • SAIF.Business.Policy/PolicyInformation.vb