---
title: "SQL-039: Read COMPANY_EMAIL, EMAIL_ADDRESS for `clsCustomerEmailCollection`"
summary: Read statement for `clsCustomerEmailCollection` against COMPANY_EMAIL, EMAIL_ADDRESS.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.CustomerContact
reference_type: package
---

# SQL-039: Read COMPANY_EMAIL, EMAIL_ADDRESS for `clsCustomerEmailCollection`

This statement supports `clsCustomerEmailCollection` by executing a read operation against COMPANY_EMAIL, EMAIL_ADDRESS.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:CustomerID` | Input | Decimal | N/A | Customer primary key |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [COMPANY_EMAIL](../database-tables.md#company-email) | SELECT / JOIN | COMPANY_SEQ_NUM, EMAIL_ADDRESS_SEQ_NUM |
| [EMAIL_ADDRESS](../database-tables.md#email-address) | SELECT / JOIN | ACTIVE_FLAG, EFF_DT, EMAIL_ADDRESS, EMAIL_ADDRESS_SEQ_NUM, EMAIL_CODE, EXP_DT, NOTE_TEXT, PRIMARY_FLAG, UPDATE_DATE, UPDATE_USER, VALIDATED_FLAG |

## Sample SQL

```sql
Select EMAIL_ADDRESS.EMAIL_ADDRESS_SEQ_NUM as EmailAddressID, EMAIL_ADDRESS.EMAIL_CODE as EmailCode, EMAIL_ADDRESS.EMAIL_ADDRESS as EmailAddress, EMAIL_ADDRESS.EFF_DT as EffectiveDate, EMAIL_ADDRESS.EXP_DT as ExpirationDate, EMAIL_ADDRESS.ACTIVE_FLAG as ActiveFlag, EMAIL_ADDRESS.PRIMARY_FLAG as PrimaryFlag, EMAIL_ADDRESS.NOTE_TEXT as NoteText, EMAIL_ADDRESS.VALIDATED_FLAG as ValidatedFlag, EMAIL_ADDRESS.UPDATE_DATE as UpdateDate, EMAIL_ADDRESS.UPDATE_USER as UpdateUser From COMPANY_Email, Email_Address Where COMPANY_Email.Email_Address_SEQ_NUM = Email_Address.Email_Address_SEQ_NUM AND COMPANY_Email.COMPANY_SEQ_NUM = :CustomerID
```

## Operations and processes
- [Email info CRUD and linking](../operations/email-info-crud-and-linking.md)

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

## Sources
- `Business\SAIF.Business.CustomerContact\Customer\clsCustomerEmailCollection.vb`
