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

# SQL-010: Insert COMPANY_PERSON for `clsCustomerContact`

This statement supports `clsCustomerContact` by executing a create operation against COMPANY_PERSON.

## Classification

| Field | Value |
| --- | --- |
| SQL ID | SQL-010 |
| Operation type | Create |
| Execution method | Inline |
| Database | Oracle |
| Schema | `[unqualified]**` |
| Command type | Text |
| Business object | `clsCustomerContact` |
| Criteria property | InsertSQL |
| Lifecycle method | BeforeInsert |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:CustomerID` | Input | Decimal | N/A | Customer primary key |
| `:ContactID` | Input | Decimal | N/A | Contact primary key |
| `:RelationshipCode` | Input | String | 5 | Customer-contact relationship code |
| `:Title` | Input | String | 100 | Relationship title |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [COMPANY_PERSON](../database-tables.md#company-person) | INSERT | COMPANY_SEQ_NUM, PERSON_SEQ_NUM, RELATIONSHIP_CODE, TITLE |

## Sample SQL

```sql
Insert into COMPANY_PERSON ( COMPANY_SEQ_NUM, PERSON_SEQ_NUM, RELATIONSHIP_CODE, TITLE ) Values ( :CustomerID, :ContactID, :RelationshipCode, :Title)
```

## Operations and processes
- [Customer-contact relationship CRUD](../operations/customer-contact-relationship-crud.md)

## Business rules
- [BR-004: Customer-contact links require a relationship code](../business-rules.md#br-004-customer-contact-links-require-a-relationship-code)

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

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