---
title: SQL-005: US_AUDIT_CONDITION by sequence
summary: US_AUDIT_CONDITION by sequence used by clsAuditCondition.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.UnitStat
reference_type: package
---

# SQL-005: US_AUDIT_CONDITION by sequence

This SQL statement implements the `US_AUDIT_CONDITION by sequence` data-access path for `clsAuditCondition` in `SAIF.Business.UnitStat`. It participates in the `read` lifecycle handled by `BeforeRetrieve`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-005 |
| **Operation type** | Read |
| **Execution method** | Inline |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuditCondition` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:AuditConditionSeqNum` | Input | Decimal | N/A | Primary key for an audit condition row. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [US_AUDIT_CONDITION](../database-tables.md#us-audit-condition) | SELECT | See sample SQL |

## Sample SQL

```sql

SELECT US_AUDIT_CONDITION_SEQ_NUM as AuditConditionSeqNum,

       US_POLICY_UNIT_SEQ_NUM as PolicyUnitSeqNum,

       US_EXPOSURE_SUMMARY_SEQ_NUM as ExposureSummarySeqNum,

       CLAIM_ID as ClaimID,

       AUDIT_CONDITION_DESCR as AuditConditionDescription,

       UPDATE_USER as UpdateUser,

       UPDATE_DATE as UpdateDate,

       edit_type_code as EditTypeCode,

       error_flag as ErrorFlag

FROM   US_AUDIT_CONDITION

WHERE  us_audit_condition_seq_num = :AuditConditionSeqNum

```

## Operations and processes

- [Audit condition maintenance](../operations/audit-condition-maintenance.md)

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources

- `Business\SAIF.Business.UnitStat\clsAuditCondition.vb`
