Skip to content

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 SELECT See sample SQL**

Sample SQL

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

Operations and processes

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