---
title: "SQL-033: Saif output-address retrieval"
summary: Saif output-address retrieval.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business
reference_type: package
---

# SQL-033: Saif output-address retrieval

This document describes `SQL-033`, the saif output-address retrieval statement or call used by `SAIF.Business`.

## Classification

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

## Parameters

This SQL statement has no explicit parameters in the provided findings.

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [LOCATION](../database-tables.md#location) | SELECT | See sample SQL and source implementation. |

## Sample SQL

```sql
SELECT LOCATION.CREATE_DATE AS CreateDate, LOCATION.CREATE_USER AS CreateUser, LOCATION.LOCATION_CODE AS LocationCode,
       LOCATION.LOCATION_NAME AS AddressDescription, LOCATION.LOC_ADDR1 AS AddressLine1, LOCATION.LOC_ADDR2 AS AddressLine2,
       LOCATION.LOC_ADDR3 AS AddressLine3, LOCATION.LOC_CITY AS City, LOCATION.LOC_COUNTRY AS Country, LOCATION.LOC_COUNTY AS County,
       LOCATION.LOC_FAX AS Fax, LOCATION.LOC_PHONE AS Phone, LOCATION.LOC_SEQ_NUM AS LocSeqNum, LOCATION.LOC_STATE AS State,
       LOCATION.LOC_ZIP AS ZipCode, LOCATION.UPDATE_DATE AS UpdateDate, LOCATION.UPDATE_USER AS UpdateUser
  FROM LOCATION
 WHERE LOCATION.LOCATION_CODE = :LocationCode
```

## Operations and processes
- [SAIF output-address retrieval](../operations/saif-output-address-retrieval.md)

## Business rules
- [BR-SB-009: SAIF output-address retrieval requires at least one LOCATION row for XSAIF](../business-rules.md#br-sb-009-saif-output-address-retrieval-requires-at-least-one-location-row-for-xsaif)

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

## Sources
- `Business\SAIF.Business\clsSAIFOutputAddress.vb`
