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

# SQL-013: Insert Pa Result Data

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

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:AuditSeqNum` | Input | bound from `AuditSeqNum` | — | Bound in `clsAuditResult.BeforeInsert` (line 290) |
| `:ResultCode` | Input | bound from `ResultCode` | 5 | Bound in `clsAuditResult.BeforeInsert` (line 291) |
| `:ResultFlag` | Input | bound from `ResultFlag` | 1 | Bound in `clsAuditResult.BeforeInsert` (line 292) |
| `:SortOrderNum` | Input | bound from `SortOrderNum` | — | Bound in `clsAuditResult.BeforeInsert` (line 293) |
| `:CreateUser` | Input | bound from `CreateUser` | 30 | Bound in `clsAuditResult.BeforeInsert` (line 294) |
| `:CreateDate` | Input | bound from `CreateDate` | — | Bound in `clsAuditResult.BeforeInsert` (line 295) |
| `:UpdateSeqNum` | Input | bound from `UpdateSeqNum` | — | Bound in `clsAuditResult.BeforeInsert` (line 296) |

## Tables

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

## Sample SQL

```sql
INSERT INTO
  PA_RESULT
  (
    PA_AUDIT_SEQ_NUM,
    PA_RESULT_CODE,
    RESULT_FLAG,
    SORT_ORDER_NUM,
    CREATE_USER,
    CREATE_DATE,
    UPDATE_SEQ_NUM
  )
VALUES
  (
    :AuditSeqNum,
    :ResultCode,
    nvl(:ResultFlag,'N'),
    :SortOrderNum,
    :CreateUser,
    :CreateDate,
    :UpdateSeqNum
  )
```

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

## Business rules
- [BR-069](../business-rules.md#br-069-an-audit-result-requires-an-existing-result-code)



> **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/clsAuditResult.vb:609`
