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 |
INSERT |
COMPANY_SEQ_NUM, PERSON_SEQ_NUM, RELATIONSHIP_CODE, TITLE |
Sample SQL
Insert into COMPANY_PERSON ( COMPANY_SEQ_NUM, PERSON_SEQ_NUM, RELATIONSHIP_CODE, TITLE ) Values ( :CustomerID, :ContactID, :RelationshipCode, :Title)
Operations and processes
Business rules
Note: Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources
Business\SAIF.Business.CustomerContact\Customer\clsCustomerContact.vb