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

# SQL-080: Update Pa Auditor Zip Code Data

This statement supports the premium-audit library by update Pa Auditor Zip Code Data.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PAAuditorID` | Input | bound from `m_PAAuditorID` | 10 | Bound in `clsAuditorZipCode.BeforeUpdate` (line 251) |
| `:ZipCode` | Input | bound from `m_ZipCode` | 5 | Bound in `clsAuditorZipCode.BeforeUpdate` (line 252) |
| `:OrigPAAuditorID` | Input | bound from `m_PAAuditorID.OriginalValue` | 10 | Bound in `clsAuditorZipCode.BeforeUpdate` (line 253) |
| `:OrigZipCode` | Input | bound from `m_ZipCode.OriginalValue` | 5 | Bound in `clsAuditorZipCode.BeforeUpdate` (line 254) |

## Tables

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

## Sample SQL

```sql
UPDATE
  PA_AUDITOR_ZIP_CODE
SET
  PA_AUDITOR_ID = :PAAuditorID,
  ZIP_CODE = :ZipCode
WHERE
  PA_AUDITOR_ZIP_CODE.PA_AUDITOR_ID = :OrigPAAuditorID
  AND PA_AUDITOR_ZIP_CODE.ZIP_CODE = :OrigZipCode
```

## 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)

## Business rules
- [BR-014](../business-rules.md#br-014-assignment-requires-matching-territory)
- [BR-068](../business-rules.md#br-068-an-auditor-zip-row-requires-an-existing-auditor-an-assignable-auditor-and-an-existing-zip-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/clsAuditorZipCode.vb:497`
