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

# SQL-033: Criteria

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-033 |
| **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 |
| --- | --- | --- | --- | --- |
| `:UpdateUser` | Input | Date | N/A | Binds UpdateUser from active calling code or Oracle signature. |
| `:WorkReleaseDate` | Input | Date | N/A | Binds WorkReleaseDate from active calling code or Oracle signature. |
| `:WorkReleaseCode` | Input | String | N/A | Binds WorkReleaseCode from active calling code or Oracle signature. |
| `:ClaimID` | Input | Number | N/A | Binds ClaimID from active calling code or Oracle signature. |
| `:ClaimWorkRelStatusSeqNum` | Input | Number | N/A | Binds ClaimWorkRelStatusSeqNum 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_WORK_RELEASE_STATUS](../database-tables.md#cl_claim_work_release_status) | UPDATE | AND, C, CLAIM_ID, CLAIM_WORK_REL_STATUS_SEQ_NUM, CL_CLAIM_WORK_RELEASE_STATUS, D, ID, N, R, S, SYSDATE, U |

## Sample SQL

```sql
Update CL_CLAIM_WORK_RELEASE_STATUS 
SET UPDATE_DATE = SYSDATE, UPDATE_NUM = UPDATE_NUM + 1, UPDATE_USER = :UpdateUser, WORK_RELEASE_DATE = :WorkReleaseDate, WORK_RELEASE_CODE = :WorkReleaseCode 
WHERE CL_CLAIM_WORK_RELEASE_STATUS.CLAIM_ID = :ClaimID 
  AND CL_CLAIM_WORK_RELEASE_STATUS.CLAIM_WORK_REL_STATUS_SEQ_NUM = :ClaimWorkRelStatusSeqNum 
  AND CL_CLAIM_WORK_RELEASE_STATUS.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\clsClaimWorkReleaseStatus.vb`
