SQL-032: US_AUDIT_CONDITION delete by policy period and edit type
This SQL statement implements the US_AUDIT_CONDITION delete by policy period and edit type data-access path for clsAuditConditionCollection in SAIF.Business.UnitStat. It participates in the delete lifecycle handled by DeletePolicyPeriodAuditsByEditType.
Classification
Field
Value
SQL ID
SQL-032
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
DeletePolicyPeriodAuditsByEditType
Parameters
Parameter
Direction
Type
Max length
Description
:PolicyNumber
Input
Decimal
N/A
SAIF policy number.
:PolicyPeriodEffectiveDate
Input
Date
N/A
Policy period effective date.
:EditTypeCode
Input
String
5
Audit classification code such as policy, exposure, or claim.
Tables
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
)
AND edit_type_code = : EditTypeCode
Operations and processes
Note: Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources
Business\SAIF.Business.UnitStat\clsAuditConditionCollection.vb