Skip to content

SQL-042: Retrieve clsSAIFPlusDiscount data

This document records the SQL used by clsSAIFPlusDiscount in SAIF.Business.Policy.Rating.

Classification

Field Value
SQL ID SQL-042
Operation type Read
Execution method Data portal — criteria SQL
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsSAIFPlusDiscount
Criteria property RetrieveSQL
Lifecycle method BeforeRetrieve / AfterRetrieve

Parameters

Parameter Direction Type Max length Description
:EffectiveDate Input Not specified not specified Bound parameter.

Tables

Table Access Columns used
SAIFPLUS_DISCOUNT SELECT See sample SQL and source for column usage.

Sample SQL

Select
  SAIFPLUS_DISCOUNT.SAIFPLUS_EFF_DATE as EffectiveDate,
  SAIFPLUS_DISCOUNT.SAIFPLUS_EXP_DATE as ExpirationDate,
  SAIFPLUS_DISCOUNT.SAIFPLUS_RATE as Rate,
  SAIFPLUS_DISCOUNT.SAIFPLUS_MAXIMUM_AMT as MaximumAmount,
  SAIFPLUS_DISCOUNT.SAIFPLUS_COMBO_MAX_AMT as CombinationMaximumAmount
From
  SAIFPLUS_DISCOUNT
Where
  SAIFPLUS_DISCOUNT.SAIFPLUS_EFF_DATE <= :EffectiveDate
  and (saifplus_exp_date is null or saifplus_exp_date > :EffectiveDate)

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\clsSAIFPlusDiscount.vb:513-527