---
title: SQL-041: Retrieve Note
summary: Retrieves note data from Oracle.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Provider
reference_type: package
---

# SQL-041: Retrieve Note

Retrieves note data from Oracle.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :CbpNoteSeqNum | Input | Decimal | N/A | Value from `MyCriteria.CbpNoteSeqNum` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CBP_NOTE](../database-tables.md#cbp_note) | SELECT | See business-object criteria for key columns. |
| [CBP_NOTE_TYPE_CODE](../database-tables.md#cbp_note_type_code) | SELECT | See business-object criteria for key columns. |

## Sample SQL

```sql
Select CBP_NOTE.CBP_NOTE_SEQ_NUM as CbpNoteSeqNum, CBP_NOTE.NOTE_TYPE_CODE as NoteTypeCode, CBP_NOTE.NOTE_CATEGORY_CODE as NoteCategoryCode, CBP_NOTE.ACTIVE_FLAG as ActiveFlag, CBP_NOTE.CREATE_DATE as CreateDate, CBP_NOTE.CREATE_USER as CreateUser, CBP_NOTE.UPDATE_DATE as UpdateDate, CBP_NOTE.UPDATE_NUM as UpdateNum, CBP_NOTE.UPDATE_USER as UpdateUser, CBP_NOTE.BILL_ID as BillID, CBP_NOTE.CLAIM_ID as ClaimID, CBP_NOTE.PROVIDER_SEQ_NUM as ProviderSeqNum, CBP_NOTE.PROVIDER_LOCATION_SEQ_NUM as ProviderLocationSeqNum, CBP_NOTE.NOTE_TXT as NoteTxt, CBP_NOTE_TYPE_CODE.PROVIDER_CONTACT_NOTE_FLAG as ContactNoteFlag From CBP_NOTE JOIN CBP_NOTE_TYPE_CODE ON CBP_NOTE.NOTE_TYPE_CODE = CBP_NOTE_TYPE_CODE.CODE AND CBP_NOTE.NOTE_CATEGORY_CODE = CBP_NOTE_TYPE_CODE.CBP_NOTE_CATEGORY_CODE Where CBP_NOTE.CBP_NOTE_SEQ_NUM = :CbpNoteSeqNum
```


## Operations and processes
- [Maintain provider notes](../operations/maintain-provider-notes.md)

## Business rules
- [BR-015: Notes require both type and text](../business-rules.md#br-015-notes-require-both-type-and-text)

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

## Sources
- `Business\SAIF.Business.Provider\clsNote.vb`
