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

# SQL-041: Criteria

This statement supports `Criteria` by executing a Delete operation through inline.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-041 |
| **Operation type** | Delete |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `Criteria` |
| **Criteria property** | `DeleteSQL` |
| **Lifecycle method** | `BeforeDelete` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:TimeCardID` | Input | Number | N/A | Binds TimeCardID from active calling code or Oracle signature. |
| `:LastUpdateNum` | Input | Date | N/A | Binds LastUpdateNum from active calling code or Oracle signature. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| `EAIP_PERIOD_TIMECARD` | Delete | EAIP_PERIOD_TIMECARD_SEQ_NUM, UPDATE_NUM |

## Sample SQL

```sql
delete from eaip_period_timecard
WHERE
    eaip_period_timecard_seq_num = :TimeCardID and
    update_num = :LastUpdateNum
```

## Operations and processes

- [Criteria delete](../operations/wage-subsidy-worksheet.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\clsPayPeriodTimeCard.vb`