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

# SQL-005: Criteria

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

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:SupportOrderID` | Input | Number | N/A | Source value `MyCriteria.SupportOrderID` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CL_CLAIM_SUPPORT_ORDER_CONN](../database-tables.md#cl-claim-support-order-conn) | READ | See sample SQL. |

## Sample SQL

```sql
Select
  CL_CLAIM_SUPPORT_ORDER_CONN.CLAIM_ID as ClaimID,
  CL_CLAIM_SUPPORT_ORDER_CONN.SUPPORT_ORDER_ID as SupportOrderID,
  CL_CLAIM_SUPPORT_ORDER_CONN.UPDATE_DATE as UpdateDate,
  CL_CLAIM_SUPPORT_ORDER_CONN.UPDATE_USER as UpdateUser
From CL_CLAIM_SUPPORT_ORDER_CONN
Where
  CL_CLAIM_SUPPORT_ORDER_CONN.SUPPORT_ORDER_ID = :SupportOrderID
```

## Sources
- `Business\SAIF.Business.Claim.SupportOrder\clsClaimSupportOrderConnectionCollection.vb`
