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

# SQL-039: Insert prior coverage collection

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-039 |
| **Operation type** | Insert |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPriorCoverageCollection` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | `BeforeInsert / AfterInsert` |

## 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.BeforeInsert` (line 198) |
| `:PriorCovExpDate` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:CarrierCode` | Input | bound from `CarrierCode` | 5 | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 187) |
| `:PriorPolicyNumber` | Input | bound from `m_PriorPolicyNumber` | 20 | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 560) |
| `: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.BeforeInsert` (line 567) |
| `:NonDisablingClaimsCount` | Input | bound from `m_NonDisablingClaimsCount` | - | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 568) |
| `:ClaimsCount` | Input | bound from `m_ClaimsCount` | - | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 569) |
| `:LossRatio` | Input | bound from `m_LossRatio` | - | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 570) |
| `:ClaimFrequency` | Input | bound from `m_ClaimFrequency` | - | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 571) |
| `:ClaimValueDate` | Input | bound from `m_ClaimValueDate` | - | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 572) |
| `:CreateDate` | Input | bound from `CreateDate` | - | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 190) |
| `:CreateUser` | Input | bound from `CreateUser` | 30 | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 189) |
| `:UpdateDate` | Input | bound from `m_UpdateDate` | - | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 589) |
| `:UpdateUser` | Input | bound from `m_UpdateUser` | 30 | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 579) |
| `:PriorCovSourceCode` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:PricingIncludeFlag` | Input | bound from `PricingIncludeFlag` | 1 | Bound in `clsPriorCoverageCollection.BeforeInsert` (line 558) |
| `: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) | INSERT | See sample SQL |

## Sample SQL

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

## 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`
