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

# SQL-016: CriteriaBase

This statement supports `CriteriaBase` by executing a Read operation through inline.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-016 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `CriteriaBase` |
| **Criteria property** | `CheckForMultipleClaimsForWorkerSQL` |
| **Lifecycle method** | `CheckForMultipleClaimsForWorker` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:WorkerID` | Input | Unknown | — | Passed from CriteriaBase via CheckForMultipleClaimsForWorker. |
| `:DoiMinus14days` | Input | Unknown | — | Passed from CriteriaBase via CheckForMultipleClaimsForWorker. |
| `:DoiPlus14days` | Input | Unknown | — | Passed from CriteriaBase via CheckForMultipleClaimsForWorker. |
| `:ClaimID` | Input | Unknown | — | Passed from CriteriaBase via CheckForMultipleClaimsForWorker. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CL_INJURY_CLAIM](../database-tables.md#cl_injury_claim) | Read | Not enumerated directly in the stage findings.** |

## Sample SQL

```sql
SELECT SAIF_CLAIM_NUM
FROM CL_INJURY_CLAIM clm
WHERE
    clm.WORKER_ID = :WorkerID AND
    clm.CLAIM_ID <> :ClaimID AND
    (clm.INJURY_DATE between :DOIMinus14Days and :DOIPlus14Days) AND
    clm.update_date = (SELECT MAX(clm2.update_date) FROM CL_INJURY_CLAIM clm2 WHERE clm2.WORKER_ID = :WorkerID AND clm2.CLAIM_ID <> :ClaimID AND (clm2.INJURY_DATE between :DOIMinus14Days and :DOIPlus14Days))
```

## Operations and processes

- [CriteriaBase CheckForMultipleClaimsForWorker](../operations/check-multiple-claims.md)

> **Note:** Statements marked with `**` could not be confirmed; treat them as unknown until verified.

## Sources

- `Business/SAIF.Business.Claim.Entry/clsClaimEntry.vb`
