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

# SQL-029: Criteria

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-029 |
| **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 |
| --- | --- | --- | --- | --- |
| `:BenefitPaymentSeqNum` | Input | Number | N/A | Binds BenefitPaymentSeqNum from active calling code or Oracle signature. |
| `:ClaimID` | Input | Number | N/A | Binds ClaimID from active calling code or Oracle signature. |
| `:NextIssueDate` | Input | Date | N/A | Binds NextIssueDate from active calling code or Oracle signature. |
| `:ReleasedPaymentCount` | Input | Number | N/A | Binds ReleasedPaymentCount from active calling code or Oracle signature. |
| `:RemainingPaymentCount` | Input | Number | N/A | Binds RemainingPaymentCount from active calling code or Oracle signature. |
| `:UpdateUser` | Input | Date | N/A | Binds UpdateUser 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_BENEFIT_SCHEDULE](../database-tables.md#cl_benefit_schedule) | UPDATE | AND, B, BENEFIT_PAYMENT_SEQ_NUM, C, CLAIM_ID, CL_BENEFIT_SCHEDULE, D, I, ID, N, NEXT_ISSUE_DATE, P |

## Sample SQL

```sql
Update CL_BENEFIT_SCHEDULE 
SET BENEFIT_PAYMENT_SEQ_NUM = :BenefitPaymentSeqNum, CLAIM_ID = :ClaimID, NEXT_ISSUE_DATE = :NextIssueDate, RELEASED_PAYMENT_COUNT = :ReleasedPaymentCount, REMAINING_PAYMENT_COUNT = :RemainingPaymentCount, UPDATE_DATE = SYSDATE, UPDATE_NUM = UPDATE_NUM + 1, UPDATE_USER = :UpdateUser 
WHERE CL_BENEFIT_SCHEDULE.BENEFIT_PAYMENT_SEQ_NUM = :BenefitPaymentSeqNum 
  AND CL_BENEFIT_SCHEDULE.CLAIM_ID = :ClaimID 
  AND CL_BENEFIT_SCHEDULE.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\clsActiveBenefitSchedule.vb`
