Skip to content

SQL-112: Retrieve w c i s inquiry

Retrieve w c i s inquiry in the context of WCISInquiry.

Classification

Field Value
SQL ID SQL-112
Operation type Read
Execution method CommandType.Text / DataRequestType.Scalar
Database Oracle
Schema [unqualified]**
Command type Text
Business object WCISInquiry
Criteria property *n/a - application layer*
Lifecycle method WCISInquiry.GetMaxPolicyEffectiveDate (application layer)

Parameters

Parameter Direction Type Max length Description
:in_policy_num Input bound from inPolicyNumber - Bound in WCISInquiry.GetMaxPolicyEffectiveDate (line 80)

Tables

Table Access Columns used
POLICY_PERIOD SELECT See sample SQL

Sample SQL

SELECT
  policy_period_eff_date
FROM
  policy_period pp
WHERE
  policy_num = :in_policy_num
  AND policy_period_eff_date = (
      SELECT
        max(policy_period_eff_date)
      FROM
        policy_period pp2
      WHERE
        pp2.policy_num = pp.policy_num
    )

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.Core\WCISInquiry.vb