SQL-049: Retrieve cancel reason override
Retrieve cancel reason override in the context of clsCancelReasonOverride.
Classification
Field
Value
SQL ID
SQL-049
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.GetCancellationSeqNum (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
Sample SQL
SELECT
CANCELLATION_SEQ_NUM
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