---
title: "SQL-021: Read operation"
summary: SQL-021 documentation for SAIF.Business.Claim.Bill.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.Bill
reference_type: package
---

# SQL-021: Read operation

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

## Classification

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

## Parameters

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

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CBP_BILL_PAYMENT_REQUEST](../database-tables.md#cbp_bill_payment_request) | READ | A, APPROVER_USER, B, BILL_ID, BILL_PAYMENT_CATEGORY_CODE, BILL_PAYMENT_SEQ_NUM, C, CBP_BILL_PAYMENT_REQUEST, CHARGEABLE_COST_FLAG, CLAIM_ID, D, E |

## Sample SQL

```sql
Select BILL_PAYMENT_SEQ_NUM as BillPaymentSeqNum, BILL_ID as BillID, CLAIM_ID as ClaimID, PROVIDER_LOC_SEQ_NUM as ProviderLocSeqNum, TAX_ID_DISPLAY_DESCR as TaxIDDisplayDescr, PROVIDER_TYPE_CODE as ProviderTypeCode, WORKER_ID as WorkerID, PAYEE_TYPE_CODE as PayeeTypeCode, TRANSACTION_AMT as TransactionAmt, WORKER_PAY_REASON_CODE as WorkerPayReasonCode, SPECIAL_HANDLING_CODE as SpecialHandlingCode, ISSUE_DATE as IssueDate, TRANSACTION_FROM_DATE as TransactionFromDate, TRANSACTION_THRU_DATE as TransactionThruDate, CHARGEABLE_COST_FLAG as ChargeableCostFlag, MCO_FEE_FLAG as McoFeeFlag, BILL_PAYMENT_CATEGORY_CODE as BillPaymentCategoryCode, FEDERAL_DATA_FLAG as FederalDataFlag, APPROVER_USER as ApproverUser, INITIATOR_USER as InitiatorUser, PROCESS_CODE as ProcessCode, PRINT_EOB_FLAG as PrintEobFlag, EBILL_FLAG as EbillFlag, PROCESS_DATE as ProcessDate, UPDATE_DATE as UpdateDate, UPDATE_NUM as UpdateNum, MESSAGE_TEXT as MessageText, UPDATE_USER as UpdateUser 
FROM CBP_BILL_PAYMENT_REQUEST 
WHERE BILL_PAYMENT_SEQ_NUM = :BillPaymentSeqNum
```

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