---
title: Fetch Next Pa Auditor Value
summary: SQL-003
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Audit.Premium
reference_type: package
---

# SQL-003: Fetch Next Pa Auditor Value

This statement supports the premium-audit library by fetch Next Pa Auditor Value.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-003 |
| **Operation type** | Sequence |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuditor` |
| **Criteria property** | `CreateSQL` |
| **Lifecycle method** | `BeforeCreate / AfterCreate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `—` | — | — | — | No bound parameters detected in source. |

## Tables

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

## Sample SQL

```sql
SELECT
  TO_NUMBER(MAX(PA_AUDITOR_ID)) + 1
FROM
  PA_AUDITOR
```

## Operations and processes
- [Assign renewal (batch) audits to auditors](../operations/assign-renewal-batch-audits-to-auditors.md)
- [Assign off-cycle audits to auditors](../operations/assign-off-cycle-audits-to-auditors.md)
- [Assign an audit to an auditor](../operations/assign-an-audit-to-an-auditor.md)

## Business rules
- [BR-014](../business-rules.md#br-014-assignment-requires-matching-territory)
- [BR-018](../business-rules.md#br-018-monthly-max-blocks-renewal-assignments)
- [BR-055](../business-rules.md#br-055-validauditor)



> **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/clsAuditor.vb:785`
