---
title: "SQL-047: Criteria"
summary: Delete statement for Criteria.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.Bill
reference_type: package
---

# SQL-047: Criteria

This document records the SQL used by `Criteria` in `SAIF.Business.Claim.Bill`.

## Classification

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

## Parameters

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

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CBP_BILL_PROCEDURE](../database-tables.md#cbp_bill_procedure) | DELETE | BILL_ID, BILL_PROCEDURE_SEQ_NUM |

## Sample SQL

```sql
Delete CBP_BILL_PROCEDURE 
WHERE CBP_BILL_PROCEDURE.BILL_ID = :BillID 
  AND CBP_BILL_PROCEDURE.BILL_PROCEDURE_SEQ_NUM = :BillProcedureID
```

> **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.Bill\Core\clsBillProcedure.vb`
