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

# SQL-021: Criteria

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-021 |
| **Operation type** | Read |
| **Execution method** | Stored procedure |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | `Criteria` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:EaipPeriodID` | Input | Number | N/A | Binds EaipPeriodID from active calling code or Oracle signature. |
| `:ClaimID` | Input | Number | N/A | Binds ClaimID from active calling code or Oracle signature. |
| `:recordset` | Output | REF CURSOR | N/A | Binds recordset from active calling code or Oracle signature. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| `EAIP_PERIOD*` | Read* | EaipPeriodID, ClaimID, recordset* |

## Sample SQL

```sql

Pk82500_eaip.eaip_period_select(:EaipPeriodID, :ClaimID, :recordset)

-- Procedure body resides in Oracle.

```

## Operations and processes

- [Criteria read](../operations/service-period-management.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\Period\clsPeriod.vb`