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

# SQL-038: Criteria

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-038 |
| **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 |
| --- | --- | --- | --- | --- |
| `:BodyPartCode` | Input | String | N/A | Binds BodyPartCode from active calling code or Oracle signature. |
| `:BodySideCode` | Input | Number | N/A | Binds BodySideCode from active calling code or Oracle signature. |
| `:InjuryNatureCode` | Input | String | N/A | Binds InjuryNatureCode from active calling code or Oracle signature. |
| `:PrimaryFlag` | Input | String | N/A | Binds PrimaryFlag from active calling code or Oracle signature. |
| `:UpdateUser` | Input | Date | N/A | Binds UpdateUser from active calling code or Oracle signature. |
| `:ClaimID` | Input | Number | N/A | Binds ClaimID from active calling code or Oracle signature. |
| `:PrimaryKeySubNum` | Input | Number | N/A | Binds PrimaryKeySubNum 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_WORKER_INJURED_BODY_PART](../database-tables.md#cl_worker_injured_body_part) | UPDATE | AND, B, BODY_PART_CODE, BODY_SIDE_CODE, C, CLAIM_ID, CL_WORKER_INJURED_BODY_PART, F, I, ID, INJURY_NATURE_CODE, K |

## Sample SQL

```sql
Update CL_WORKER_INJURED_BODY_PART 
SET BODY_PART_CODE = :BodyPartCode, BODY_SIDE_CODE = :BodySideCode, INJURY_NATURE_CODE = :InjuryNatureCode, PRIMARY_FLAG = :PrimaryFlag, UPDATE_DATE = SYSDATE, UPDATE_NUM = UPDATE_NUM + 1, UPDATE_USER = :UpdateUser 
WHERE CL_WORKER_INJURED_BODY_PART.CLAIM_ID = :ClaimID 
  AND CL_WORKER_INJURED_BODY_PART.PRIMARY_KEY_SUB_NUM = :PrimaryKeySubNum 
  AND CL_WORKER_INJURED_BODY_PART.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\clsWorkerInjuredBodyPart.vb`
