---
title: "SQL-102: Retrieve s a i f office"
summary: "Retrieve s a i f office"
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Core
reference_type: package
---

# SQL-102: Retrieve s a i f office

Retrieve s a i f office in the context of `clsSAIFOffice`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-102 |
| **Operation type** | Read |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsSAIFOffice` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | bound from `MyCriteria.Code` | 5 | Bound in `clsSAIFOffice.BeforeRetrieve` (line 318) |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [OFFICE_CODE](../database-tables.md#office_code) | SELECT | See sample SQL |

## Sample SQL

```sql
SELECT
  OFFICE_CODE.CODE as Code,
  OFFICE_CODE.CODE_DESCR as Description,
  OFFICE_CODE.PMS_OFFICE_CODE as PMSOfficeCode,
  OFFICE_CODE.POLICY_RENEWAL_TRACK_CODE as PolicyRenewalTrackCode,
  OFFICE_CODE.LOC_SEQ_NUM as LocationSeqNum,
  OFFICE_CODE.CANCELLATION_TRACK_CODE as CancellationTrackCode,
  OFFICE_CODE.POLICY_REGION_CODE as PolicyRegionCode
FROM
  OFFICE_CODE
WHERE
  OFFICE_CODE.CODE = :Code
```

## Business rules
- [BR-030: The service centre office is identified by office](../business-rules.md#br-030-the-service-centre-office-is-identified-by-office)
- [BR-033: New sequence values for writable entities are obtained](../business-rules.md#br-033-new-sequence-values-for-writable-entities-are-obtained)

> **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.Policy.Core\clsSAIFOffice.vb`
