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

# SQL-023: Insert CUSTOMER_POLICY for `mdlCustomerContact`

This statement supports `mdlCustomerContact` by executing a create operation against CUSTOMER_POLICY.

## Classification

| Field | Value |
| --- | --- |
| SQL ID | SQL-023 |
| Operation type | Create |
| Execution method | Inline via SqlHelper.DataQuery |
| Database | Oracle |
| Schema | `[unqualified]**` |
| Command type | Text |
| Business object | `mdlCustomerContact` |
| Criteria property | GetCustomerIDForPolicy |
| Lifecycle method | GetCustomerIDForPolicy |

## Parameters

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

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CUSTOMER_POLICY](../database-tables.md#customer-policy) | INSERT | COMPANY_SEQ_NUM, POLICY_NUM |

## Sample SQL

```sql
INSERT INTO CUSTOMER_POLICY (COMPANY_SEQ_NUM, POLICY_NUM) VALUES (:CustomerID, :Policy)
```

## 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`
