Skip to content

SQL-050: Retrieve cancel reason override

Retrieve cancel reason override in the context of clsCancelReasonOverride.

Classification

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

Parameters

Parameter Direction Type Max length Description
:PolicyNumber Input bound from inPolicyNumber - Bound in clsCancelReasonOverride.GetCancelReasonOverride (line 449)

Tables

Table Access Columns used
CANCELLATION SELECT See sample SQL
CANCEL_REASON_CODE SELECT See sample SQL

Sample SQL

SELECT
  (Select CODE_DESCR from CANCEL_REASON_CODE C where C.CODE = A.CANCEL_REASON_CODE)
FROM
  CANCELLATION A
WHERE
  A.CANCELLATION_SEQ_NUM = (
      SELECT
        Max(CANCELLATION_SEQ_NUM)
      FROM
        CANCELLATION B
      WHERE
        B.POLICY_NUM = :PolicyNumber
        AND B.CANCELLATION_SEQ_NUM = A.CANCELLATION_SEQ_NUM
    )
  AND (A.REINSTATE_UPDATE_DATE IS NULL And A.RESCIND_UPDATE_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.Core\clsCancelReasonOverride.vb