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

# SQL-049: Read CUSTOMER_AGENT for `mdlCustomerContact`

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

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:ID` | Input | Decimal | N/A | Agent lookup identifier passed from AgentInfo.AgencyID* |

## Tables

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

## Sample SQL

```sql
select company_seq_num as CustomerID, person_seq_num as ContactID from customer_agent where agent_num = :ID
```

## Operations and processes
- [Agency, agent, and provider customer resolution](../operations/agency-agent-provider-resolution.md)

> **Note:** Statements marked with `*` are inferred from code behavior rather than explicit documentation or comments; statements marked with `**` could not be confirmed and should be treated as unknown until verified.

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