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

# SQL-084: Update Pa Result Data

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

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:ResultFlag` | Input | bound from `ResultFlag` | 1 | Bound in `clsAuditResult.BeforeUpdate` (line 353) |
| `:UpdateUser` | Input | bound from `m_UpdateUser` | 30 | Bound in `clsAuditResult.BeforeUpdate` (line 355) |
| `:UpdateDate` | Input | bound from `m_UpdateDate` | — | Bound in `clsAuditResult.BeforeUpdate` (line 356) |
| `:UpdateSeqNum` | Input | bound from `UpdateSeqNum` | — | Bound in `clsAuditResult.BeforeUpdate` (line 354) |
| `:AuditSeqNum` | Input | bound from `m_AuditSeqNum` | — | Bound in `clsAuditResult.BeforeUpdate` (line 359) |
| `:ResultCode` | Input | bound from `m_ResultCode` | 5 | Bound in `clsAuditResult.BeforeUpdate` (line 360) |

## Tables

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

## Sample SQL

```sql
UPDATE
  PA_RESULT
SET
  RESULT_FLAG = :ResultFlag,
  UPDATE_USER = :UpdateUser,
  UPDATE_DATE = :UpdateDate,
  UPDATE_SEQ_NUM = :UpdateSeqNum
WHERE
  PA_RESULT.PA_AUDIT_SEQ_NUM = :AuditSeqNum
  AND PA_RESULT.PA_RESULT_CODE = :ResultCode
```

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