---
title: "SQL-062: Read CUSTOMER_SOURCE for `mdlCustomerContact`"
summary: Read statement for `mdlCustomerContact` against CUSTOMER_SOURCE.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.CustomerContact
reference_type: package
---

# SQL-062: Read CUSTOMER_SOURCE for `mdlCustomerContact`

This statement supports `mdlCustomerContact` by executing a read operation against CUSTOMER_SOURCE.

## Classification

| Field | Value |
| --- | --- |
| SQL ID | SQL-062 |
| Operation type | Read |
| Execution method | Inline via SqlHelper.ScalarQuery |
| Database | Oracle |
| Schema | `[unqualified]**` |
| Command type | Text |
| Business object | `mdlCustomerContact` |
| Criteria property | GetCustomerIDForRTW |
| Lifecycle method | GetCustomerIDForRTW |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:RTWLoadCode` | Input | String | 5 | RTW load code |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CUSTOMER_SOURCE](../database-tables.md#customer-source) | SELECT | See sample SQL** |

## Sample SQL

```sql
Select company_seq_num from CUSTOMER_SOURCE where upper(source_system_ID) = :RTWLoadCode and company_code = 'RTW'
```

## Operations and processes
- [External identifier resolution](../operations/external-identifier-resolution.md)

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

## Sources
- `Business\SAIF.Business.CustomerContact\mdlCustomerContact.vb`
