---
title: "SQL-032: Criteria"
summary: Update statement for Criteria.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-28
library: SAIF.Business.Claim
reference_type: package
---

# SQL-032: Criteria

This document records the SQL used by `Criteria` in `SAIF.Business.Claim`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:AddressLine1` | Input | String | N/A | Binds AddressLine1 from active calling code or Oracle signature. |
| `:AddressLine2` | Input | String | N/A | Binds AddressLine2 from active calling code or Oracle signature. |
| `:AddressLine3` | Input | String | N/A | Binds AddressLine3 from active calling code or Oracle signature. |
| `:AddressLine4` | Input | String | N/A | Binds AddressLine4 from active calling code or Oracle signature. |
| `:CityName` | Input | String | N/A | Binds CityName from active calling code or Oracle signature. |
| `:CountyCode` | Input | Number | N/A | Binds CountyCode from active calling code or Oracle signature. |
| `:ForeignAddressFlag` | Input | String | N/A | Binds ForeignAddressFlag from active calling code or Oracle signature. |
| `:StateCode` | Input | String | N/A | Binds StateCode from active calling code or Oracle signature. |
| `:UpdateUser` | Input | Date | N/A | Binds UpdateUser from active calling code or Oracle signature. |
| `:ZipCode` | Input | String | N/A | Binds ZipCode from active calling code or Oracle signature. |
| `:ZipCodeExt` | Input | String | N/A | Binds ZipCodeExt from active calling code or Oracle signature. |
| `:ClaimID` | Input | Number | N/A | Binds ClaimID from active calling code or Oracle signature. |
| `:UpdateNum` | Input | Date | N/A | Binds UpdateNum from active calling code or Oracle signature. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CL_CLAIM_EMPLOYEE_WORK_ADDRESS](../database-tables.md#cl_claim_employee_work_address) | UPDATE | A, ADDRESS_LINE, C, CITY_NAME, CLAIM_ID, CL_CLAIM_EMPLOYEE_WORK_ADDRESS, COUNTY_CODE, E, F, FOREIGN_ADDRESS_FLAG, ID, L |

## Sample SQL

```sql
Update CL_CLAIM_EMPLOYEE_WORK_ADDRESS 
SET ADDRESS_LINE1 = :AddressLine1, ADDRESS_LINE2 = :AddressLine2, ADDRESS_LINE3 = :AddressLine3, ADDRESS_LINE4 = :AddressLine4, CITY_NAME = :CityName, COUNTY_CODE = :CountyCode, FOREIGN_ADDRESS_FLAG = :ForeignAddressFlag, STATE_CODE = :StateCode, UPDATE_DATE = SYSDATE, UPDATE_NUM = UPDATE_NUM + 1, UPDATE_USER = :UpdateUser, ZIP_CODE = :ZipCode, ZIP_CODE_EXT = :ZipCodeExt 
WHERE CL_CLAIM_EMPLOYEE_WORK_ADDRESS.CLAIM_ID = :ClaimID 
  AND UPDATE_NUM = :UpdateNum
```

> **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.Claim\clsClaimEmployeeWorkAddress.vb`
