SQL-051: Retrieve cancel reason override
Retrieve cancel reason override in the context of clsCancelReasonOverride.
Classification
Field
Value
SQL ID
SQL-051
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.OriginalCarrierChangeReasonCode (application layer)
Parameters
Parameter
Direction
Type
Max length
Description
:PolicyNumber
Input
bound from inPolicyNumber
-
Bound in clsCancelReasonOverride.GetCancelReasonOverride (line 449)
Tables
Sample SQL
SELECT
(
SELECT
CODE || ' - ' || CODE_DESCR
FROM
CARRIER_CHANGE_REASON_CODE C
WHERE
C . CODE = A . CARRIER_CHANGE_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