---
title: Insert Pa Selection Test Data
summary: SQL-016
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Audit.Premium
reference_type: package
---

# SQL-016: Insert Pa Selection Test Data

This statement supports the premium-audit library by insert Pa Selection Test Data.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:CreateDate` | Input | bound from `CreateDate` | — | Bound in `clsAuditSelectionTestResult.BeforeInsert` (line 187) |
| `:CreateUser` | Input | bound from `CreateUser` | 30 | Bound in `clsAuditSelectionTestResult.BeforeInsert` (line 188) |
| `:AuditSeqNum` | Input | bound from `AuditSeqNum` | — | Bound in `clsAuditSelectionTestResult.BeforeInsert` (line 189) |
| `:SelectionRuleID` | Input | bound from `SelectionRuleID` | — | Bound in `clsAuditSelectionTestResult.BeforeInsert` (line 190) |
| `:UpdateSeqNum` | Input | bound from `UpdateSeqNum` | — | Bound in `clsAuditSelectionTestResult.BeforeInsert` (line 191) |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [`PA_SELECTION_TEST`](../database-tables.md#pa_selection_test) | INSERT | See sample SQL. |

## Sample SQL

```sql
INSERT INTO
  PA_SELECTION_TEST
  (
    CREATE_DATE,
    CREATE_USER,
    PA_AUDIT_SEQ_NUM,
    PA_SELECTION_RULE_ID,
    UPDATE_SEQ_NUM
  )
VALUES
  (
    :CreateDate,
    :CreateUser,
    :AuditSeqNum,
    :SelectionRuleID,
    :UpdateSeqNum
  )
```

## Operations and processes
- [Run audit selection tests](../operations/run-audit-selection-tests.md)
- [Save a premium audit](../operations/save-a-premium-audit.md)

## Business rules
- [BR-072](../business-rules.md#br-072-a-selection-test-result-requires-a-selection-rule-id-present-in-the-pa_selection_rule-table)



> **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.Audit.Premium/clsAuditSelectionTestResult.vb:381`
