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

# SQL-087: Update Pa Premium Audit Result Data

This statement supports the premium-audit library by update Pa Premium Audit Result Data.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:ResultXML` | Input | bound from `ResultXML` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 160) |
| `:CreateDate` | Input | bound from `m_CreateDate` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 161) |
| `:CreateUser` | Input | bound from `m_CreateUser` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 162) |
| `:UpdateDate` | Input | bound from `m_UpdateDate` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 163) |
| `:UpdateUser` | Input | bound from `m_UpdateUser` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 164) |
| `:AuditSeqNum` | Input | bound from `AuditSeqNum` | — | Bound in `clsPremiumAuditResult.BeforeDelete` (line 129) |
| `:UpdateNum` | Input | bound from `m_UpdateNum` | — | Bound in `clsPremiumAuditResult.BeforeDelete` (line 130) |

## Tables

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

## Sample SQL

```sql
UPDATE
  PA_PREMIUM_AUDIT_RESULT
SET
  PA_PAR_XML_TEXT = :ResultXML,
  CREATE_DATE = :CreateDate,
  CREATE_USER = :CreateUser,
  UPDATE_DATE = :UpdateDate,
  UPDATE_USER = :UpdateUser,
  UPDATE_NUM = UPDATE_NUM + 1
WHERE
  PA_AUDIT_SEQ_NUM = :AuditSeqNum
  AND UPDATE_NUM = :UpdateNum
```

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

## Business rules
- [BR-058](../business-rules.md#br-058-validtestaudittype-validtestauditdifference-validtestauditresult)
- [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/clsPremiumAuditResult.vb:620`
