---
title: "SQL-140: Update prior coverage collection"
summary: "Update prior coverage collection"
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Core
reference_type: package
---

# SQL-140: Update prior coverage collection

Update prior coverage collection in the context of `clsPriorCoverageCollection`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-140 |
| **Operation type** | Update |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPriorCoverageCollection` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate / AfterUpdate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNum` | Input | bound from `MyCriteria.PolicyNum` | - | Bound in `clsPriorCoverageCollection.BeforeRetrieve` (line 208) |
| `:EffectiveDate` | Input | bound from `EffectiveDate` | - | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 233) |
| `:PriorCovExpDate` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:CarrierCode` | Input | bound from `m_CarrierCode` | 5 | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 674) |
| `:PriorPolicyNumber` | Input | bound from `m_PriorPolicyNumber` | 20 | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 644) |
| `:EmodRate` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:AnnualPremiumAmt` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:AnnualPayrollAmt` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:DisablingClaimsAmt` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:NonDisablingClaimsAmt` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:ClaimsAmt` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:DisablingClaimsCount` | Input | bound from `m_DisablingClaimsCount` | - | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 651) |
| `:NonDisablingClaimsCount` | Input | bound from `m_NonDisablingClaimsCount` | - | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 652) |
| `:ClaimsCount` | Input | bound from `m_ClaimsCount` | - | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 653) |
| `:LossRatio` | Input | bound from `m_LossRatio` | - | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 654) |
| `:ClaimFrequency` | Input | bound from `m_ClaimFrequency` | - | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 655) |
| `:ClaimValueDate` | Input | bound from `m_ClaimValueDate` | - | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 656) |
| `:CreateDate` | Input | bound from `CreateDate` | - | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 650) |
| `:CreateUser` | Input | bound from `CreateUser` | 30 | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 651) |
| `:UpdateDate` | Input | bound from `m_UpdateDate` | - | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 673) |
| `:UpdateUser` | Input | bound from `m_UpdateUser` | 30 | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 663) |
| `:PriorCovSourceCode` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:PricingIncludeFlag` | Input | bound from `PricingIncludeFlag` | 1 | Bound in `clsPriorCoverageCollection.BeforeUpdate` (line 642) |
| `:AdjustedClaimsAmt` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PRIOR_COVERAGE](../database-tables.md#prior_coverage) | UPDATE | See sample SQL |

## Sample SQL

```sql
UPDATE
  PRIOR_COVERAGE
SET
  POLICY_NUM = :PolicyNum,
  PRIOR_COV_EFF_DATE = :EffectiveDate,
  PRIOR_COV_EXP_DATE = :PriorCovExpDate,
  CARRIER_CODE = :CarrierCode,
  PRIOR_POLICY_NUMBER = :PriorPolicyNumber,
  EMOD_RATE = :EmodRate,
  ANNUAL_PREMIUM_AMT = :AnnualPremiumAmt,
  ANNUAL_PAYROLL_AMT = :AnnualPayrollAmt,
  DISABLING_CLAIMS_AMT = :DisablingClaimsAmt,
  NON_DISABLING_CLAIMS_AMT = :NonDisablingClaimsAmt,
  CLAIMS_AMT = :ClaimsAmt,
  DISABLING_CLAIMS_COUNT = :DisablingClaimsCount,
  NON_DISABLING_CLAIMS_COUNT = :NonDisablingClaimsCount,
  CLAIMS_COUNT = :ClaimsCount,
  LOSS_RATIO = :LossRatio,
  CLAIM_FREQUENCY = :ClaimFrequency,
  CLAIM_VALUE_DATE = :ClaimValueDate,
  CREATE_DATE = :CreateDate,
  CREATE_USER = :CreateUser,
  UPDATE_DATE = :UpdateDate,
  UPDATE_USER = :UpdateUser,
  PRIOR_COV_SOURCE_CODE = :PriorCovSourceCode,
  PRICING_INCLUDE_FLAG = :PricingIncludeFlag,
  ADJUSTED_CLAIMS_AMT = :AdjustedClaimsAmt
WHERE
  PRIOR_COVERAGE.POLICY_NUM = :PolicyNum
```

## Business rules
- [BR-033: New sequence values for writable entities are obtained](../business-rules.md#br-033-new-sequence-values-for-writable-entities-are-obtained)

> **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\clsPriorCoverageCollection.vb`
