Skip to content

SQL-031: US_AUDIT_CONDITION delete by policy period

This SQL statement implements the US_AUDIT_CONDITION delete by policy period data-access path for clsAuditConditionCollection in SAIF.Business.UnitStat. It participates in the delete lifecycle handled by DeletePolicyPeriodAudits.

Classification

Field Value
SQL ID SQL-031
Operation type Delete
Execution method Inline
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsAuditConditionCollection
Criteria property N/A (direct helper SQL)
Lifecycle method DeletePolicyPeriodAudits

Parameters

Parameter Direction Type Max length Description
:PolicyNumber Input Decimal N/A SAIF policy number.
:PolicyPeriodEffectiveDate Input Date N/A Policy period effective date.

Tables

Table Access Columns used
US_AUDIT_CONDITION DELETE See sample SQL
US_POLICY_UNIT DELETE See sample SQL

Sample SQL

DELETE us_audit_condition

WHERE us_policy_unit_seq_num in (

    SELECT us_policy_unit_seq_num

    FROM   us_policy_unit pun

    WHERE  pun.policy_num = :PolicyNumber

    AND    pun.policy_period_eff_date = :PolicyPeriodEffectiveDate

)

Operations and processes

Note: Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business\SAIF.Business.UnitStat\clsAuditConditionCollection.vb