---
title: "SQL-044: clsAuditorZipCode"
summary: Update statement for clsAuditorZipCode.
status: draft
owner: <owner>
last_reviewed: 2026-07-24
library: SAIF.Business.External.Users
reference_type: package
---

# SQL-044: clsAuditorZipCode

Updates a `PA_AUDITOR_ZIP_CODE` row to new values using the original auditor ID and zip code as the composite WHERE key.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-044 |
| **Operation type** | Update |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuditorZipCode` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PAAuditorID` | Input | Decimal | N/A | New auditor ID value. |
| `:ZipCode` | Input | String | 5 | New zip code value. |
| `:OrigPAAuditorID` | Input | Decimal | N/A | Original auditor ID (WHERE clause). |
| `:OrigZipCode` | Input | String | 5 | Original zip code (WHERE clause). |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PA_AUDITOR_ZIP_CODE](../database-tables.md#pa_auditor_zip_code) | UPDATE | `PA_AUDITOR_ID`, `ZIP_CODE` |

## 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
- [Auditor assignment / override](../operations/auditor-assignment-override.md)

> **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.External.Users\clsAuditorZipCode.vb`
