This statement supports clsCustomerContact by executing a update operation against COMPANY_PERSON.
Classification
| Field |
Value |
| SQL ID |
SQL-069 |
| Operation type |
Update |
| Execution method |
Inline |
| Database |
Oracle |
| Schema |
[unqualified]** |
| Command type |
Text |
| Business object |
clsCustomerContact |
| Criteria property |
UpdateSQL |
| Lifecycle method |
BeforeUpdate |
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 |
UPDATE |
COMPANY_SEQ_NUM, PERSON_SEQ_NUM, RELATIONSHIP_CODE, TITLE |
Sample SQL
Update COMPANY_PERSON Set RELATIONSHIP_CODE = :RelationshipCode, TITLE = :Title Where COMPANY_PERSON.COMPANY_SEQ_NUM = :CustomerID AND COMPANY_PERSON.PERSON_SEQ_NUM = :ContactID AND COMPANY_PERSON.RELATIONSHIP_CODE = :RelationshipCode
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