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

# SQL-045: Read Pa Result Data

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-045 |
| **Operation type** | Read |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuditResult` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:AuditSeqNum` | Input | bound from `MyCriteria.AuditSeqNum` | — | Bound in `clsAuditResult.BeforeRetrieve` (line 324) |

## Tables

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

## Sample SQL

```sql
SELECT
  PA_RESULT.PA_AUDIT_SEQ_NUM as AuditSeqNum,
  PA_RESULT.PA_RESULT_CODE as ResultCode,
  PA_RESULT.RESULT_FLAG as ResultFlag,
  PA_RESULT.SORT_ORDER_NUM as SortOrderNum,
  PA_RESULT.CREATE_USER as CreateUser,
  PA_RESULT.CREATE_DATE as CreateDate,
  PA_RESULT.UPDATE_USER as UpdateUser,
  PA_RESULT.UPDATE_DATE as UpdateDate,
  PA_RESULT.UPDATE_SEQ_NUM as UpdateSeqNum
FROM
  PA_RESULT
WHERE
  PA_RESULT.PA_AUDIT_SEQ_NUM = :AuditSeqNum
```

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