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

# SQL-034: Criteria

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-034 |
| **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 |
| --- | --- | --- | --- | --- |
| `:AuditAdjustmentCode` | Input | String | N/A | Binds AuditAdjustmentCode from active calling code or Oracle signature. |
| `:AuditAdjustmentAmount` | Input | Number | N/A | Binds AuditAdjustmentAmount 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. |
| `:BillID` | Input | Number | N/A | Binds BillID from active calling code or Oracle signature. |
| `:AuditServiceID` | Input | Number | N/A | Binds AuditServiceID from active calling code or Oracle signature. |
| `:Code` | Input | String | N/A | Binds Code from active calling code or Oracle signature. |
| `:UpdateNumber` | Input | Date | N/A | Binds UpdateNumber from active calling code or Oracle signature. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CBP_AUDITED_SERVICE_ADJUSTMENT](../database-tables.md#cbp_audited_service_adjustment) | UPDATE | A, AND, AUDIT_ADJUSTMENT_AMT, AUDIT_ADJUSTMENT_CODE, AUDIT_SEQ_NUM, B, BILL_ID, C, CBP_AUDITED_SERVICE_ADJUSTMENT, D, ID, N |

## Sample SQL

```sql
Update CBP_AUDITED_SERVICE_ADJUSTMENT 
SET AUDIT_ADJUSTMENT_CODE = :AuditAdjustmentCode, AUDIT_ADJUSTMENT_AMT = :AuditAdjustmentAmount, UPDATE_USER = :UpdateUser, UPDATE_NUM = UPDATE_NUM + 1, UPDATE_DATE = :UpdateDate 
WHERE BILL_ID = :BillID 
  AND AUDIT_SEQ_NUM = :AuditServiceID 
  AND AUDIT_ADJUSTMENT_CODE = :Code 
  AND UPDATE_NUM = :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.Claim.Bill\Core\clsAuditedServiceAdjustment.vb`
