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

# SQL-037: Criteria

This statement supports `Criteria` by executing a Update operation through storedproc.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-037 |
| **Operation type** | Update |
| **Execution method** | Stored procedure |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | `Criteria` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:TargetID` | Input | Number | N/A | Binds TargetID from active calling code or Oracle signature. |
| `:ClaimID` | Input | Number | N/A | Binds ClaimID from active calling code or Oracle signature. |
| `:CompletedDate` | Input | Date | N/A | Binds CompletedDate from active calling code or Oracle signature. |
| `:EaipTargetingCode` | Input | String | N/A | Binds EaipTargetingCode from active calling code or Oracle signature. |
| `:WageSubsidyEffectiveDate` | Input | Date | N/A | Binds WageSubsidyEffectiveDate from active calling code or Oracle signature. |
| `:WageSubsidyExpirationDate` | Input | Date | N/A | Binds WageSubsidyExpirationDate from active calling code or Oracle signature. |
| `:ReviewerUser` | Input | String | N/A | Binds ReviewerUser from active calling code or Oracle signature. |
| `:TargetingText` | Input | String | N/A | Binds TargetingText from active calling code or Oracle signature. |
| `:ClaimStatusDate` | Input | Date | N/A | Binds ClaimStatusDate from active calling code or Oracle signature. |
| `:ClaimStatusCode` | Input | String | N/A | Binds ClaimStatusCode from active calling code or Oracle signature. |
| `:CreateUser` | Input | String | N/A | Binds CreateUser from active calling code or Oracle signature. |
| `:CreateDate` | Input | Date | N/A | Binds CreateDate from active calling code or Oracle signature. |
| `:UpdateUser` | Input | Date | N/A | Binds UpdateUser from active calling code or Oracle signature. |
| `:UpdateDate` | Input | Date | N/A | Binds UpdateDate from active calling code or Oracle signature. |
| `:UpdateNum` | Input | Date | N/A | Binds UpdateNum from active calling code or Oracle signature. |
| `:LastUpdateNum` | Input | Date | N/A | Binds LastUpdateNum from active calling code or Oracle signature. |
| `:TargetID` | Input | Number | N/A | Binds TargetID from active calling code or Oracle signature. |
| `:LastUpdateNum` | Input | Date | N/A | Binds LastUpdateNum from active calling code or Oracle signature. |
| `:ExpenseStatus` | Input | String | N/A | Binds ExpenseStatus from active calling code or Oracle signature. |
| `:Specialist` | Input | String | N/A | Binds Specialist from active calling code or Oracle signature. |
| `:ServicePeriodSeqNum` | Input | Number | N/A | Binds ServicePeriodSeqNum from active calling code or Oracle signature. |
| `:ClaimID` | Input | Number | N/A | Binds ClaimID from active calling code or Oracle signature. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| `EAIP_TARGETING*` | Update* | TargetID, ClaimID, CompletedDate, EaipTargetingCode, WageSubsidyEffectiveDate, WageSubsidyExpirationDate, ReviewerUser, TargetingText, ClaimStatusDate, ClaimStatusCode, CreateUser, CreateDate, UpdateUser, UpdateDate, UpdateNum, LastUpdateNum, TargetID, LastUpdateNum, ExpenseStatus, Specialist, ServicePeriodSeqNum, ClaimID* |

## Sample SQL

```sql

pk82500_eaip.eaip_targeting_update(:TargetID, :ClaimID, :CompletedDate, :EaipTargetingCode, :WageSubsidyEffectiveDate, :WageSubsidyExpirationDate, :ReviewerUser, :TargetingText, :ClaimStatusDate, :ClaimStatusCode, :CreateUser, :CreateDate, :UpdateUser, :UpdateDate, :UpdateNum, :LastUpdateNum, :TargetID, :LastUpdateNum, :ExpenseStatus, :Specialist, :ServicePeriodSeqNum, :ClaimID)

-- Procedure body resides in Oracle.

```

## Operations and processes

- [Criteria update](../operations/claim-targeting.md)

> **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.EAIP\Targeting\clsTargeting.vb`