Skip to content

SQL-018: Insert CUSTOMER_AGENCY for mdlCustomerContact

This statement supports mdlCustomerContact by executing a create operation against CUSTOMER_AGENCY.

Classification

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

Parameters

Parameter Direction Type Max length Description
:CustomerID Input Decimal N/A Customer primary key
:AgencyID Input Decimal N/A Agency sequence number

Tables

Table Access Columns used
CUSTOMER_AGENCY INSERT AGENCY_SEQ_NUM, COMPANY_SEQ_NUM

Sample SQL

INSERT INTO CUSTOMER_AGENCY (COMPANY_SEQ_NUM, AGENCY_SEQ_NUM) VALUES (:CustomerID, :AgencyID)

Operations and processes

Business rules

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

Sources

  • Business\SAIF.Business.CustomerContact\mdlCustomerContact.vb