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

# SQL-070: Criteria

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-070 |
| **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 |
| --- | --- | --- | --- | --- |
| `:ThrdpartyCaseSeqNum` | Input | Number | N/A | Source value `MyCriteria.ThrdpartyCaseSeqNum` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [THRDPARTY_STATUS_HIST](../database-tables.md#thrdparty_status_hist) | READ | See sample SQL. |

## Sample SQL

```sql
Select THRDPARTY_STATUS_HIST.CREATE_DATE as CreateDate, THRDPARTY_STATUS_HIST.CREATE_USER as CreateUser, THRDPARTY_STATUS_HIST.THRDPARTY_CASE_SEQ_NUM as ThrdpartyCaseSeqNum, THRDPARTY_STATUS_HIST.THRDPARTY_CLOSURE_CODE as ThrdpartyClosureCode, THRDPARTY_STATUS_HIST.THRDPARTY_STATUS_CODE as ThrdpartyStatusCode, THRDPARTY_STATUS_HIST.THRDPARTY_STATUS_HIST_SEQ_NUM as ThrdpartyStatusHistSeqNum From THRDPARTY_STATUS_HIST Where THRDPARTY_STATUS_HIST.THRDPARTY_CASE_SEQ_NUM = :ThrdpartyCaseSeqNum
```

> **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.ThirdParty\clsThirdpartyStatusHistCollection.vb`
