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

# SQL-020: Criteria

This SQL artifact supports ``Criteria`` by executing a update operation through Inline.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:LossCategoryOffsetSeqNum` | Input | Number | N/A | Source value `LossCategoryOffsetSeqNum` |
| `:LossCategorySeqNum` | Input | Number | N/A | Source value `LossCategorySeqNum` |
| `:OffsetTypeCode` | Input | String | 5 | Source value `OffsetTypeCode` |
| `:OffsetAmount` | Input | Number | N/A | Source value `OffsetAmount` |
| `:UpdateUser` | Input | Date | 30 | Source value `UpdateUser` |
| `:UpdateDate` | Input | Date | N/A | Source value `UpdateDate` |
| `:UpdateNumber` | Input | Date | N/A | Source value `UpdateNumber` |

## Tables

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

## Sample SQL

```sql
Update US_LOSS_CATEGORY_OFFSET Set US_LOSS_CAT_OFFSET_SEQ_NUM = :LossCategoryOffsetSeqNum, US_LOSS_CATEGORY_SEQ_NUM = :LossCategorySeqNum, OFFSET_TYPE_CODE = :OffsetTypeCode, OFFSET_AMOUNT = :OffsetAmount, UPDATE_USER = :UpdateUser, UPDATE_DATE = :UpdateDate, UPDATE_NUM = :UpdateNumber Where US_LOSS_CATEGORY_OFFSET.US_LOSS_CAT_OFFSET_SEQ_NUM = :LossCategoryOffsetSeqNum
```

> **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.UnitStat.Claim\Loss Summary\clsLossCategoryOffset.vb`
