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

# SQL-031: Read Pa Event Data

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

## Classification

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

## Parameters

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

## Tables

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

## Sample SQL

```sql
SELECT
  PA_EVENT.EVENT_DATE as EventDate,
  PA_EVENT.EVENT_TEXT as EventText,
  PA_EVENT.EVENT_USER_ID as EventUserID,
  PA_EVENT.PA_AUDIT_SEQ_NUM as AuditSeqNum,
  PA_EVENT.PA_EVENT_CODE as EventCode,
  PA_EVENT.PA_EVENT_SEQ_NUM as EventSeqNum
FROM
  PA_EVENT
WHERE
  PA_EVENT.PA_AUDIT_SEQ_NUM = :AuditSeqNum
ORDER BY
  PA_EVENT.PA_AUDIT_SEQ_NUM,
  PA_EVENT.EVENT_DATE,
  PA_EVENT.PA_EVENT_CODE
```

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

## Business rules
- [BR-067](../business-rules.md#br-067-audit-event-code-must-be-valid)



> **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/clsAuditEventCollection.vb:402`
