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

# SQL-005: Criteria

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-005 |
| **Operation type** | Create |
| **Execution method** | Inline |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | ``Criteria`` |
| **Criteria property** | ``insertsql`` |
| **Lifecycle method** | ``Criteria create`` |

## 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) | CREATE | See sample SQL. |

## Sample SQL

```sql
Insert into US_LOSS_CATEGORY_OFFSET ( US_LOSS_CAT_OFFSET_SEQ_NUM, US_LOSS_CATEGORY_SEQ_NUM, OFFSET_TYPE_CODE, OFFSET_AMOUNT, UPDATE_USER, UPDATE_DATE, UPDATE_NUM ) Values ( :LossCategoryOffsetSeqNum, :LossCategorySeqNum, :OffsetTypeCode, :OffsetAmount, :UpdateUser, :UpdateDate, :UpdateNumber)
```

> **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`
