This statement supports clsCustomerContact by executing a delete operation against COMPANY_PERSON.
Classification
| Field |
Value |
| SQL ID |
SQL-084 |
| Operation type |
Delete |
| Execution method |
Inline |
| Database |
Oracle |
| Schema |
[unqualified]** |
| Command type |
Text |
| Business object |
clsCustomerContact |
| Criteria property |
DeleteSQL |
| Lifecycle method |
BeforeDelete |
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 |
Tables
| Table |
Access |
Columns used |
| COMPANY_PERSON |
DELETE |
COMPANY_SEQ_NUM, PERSON_SEQ_NUM, RELATIONSHIP_CODE |
Sample SQL
Delete COMPANY_PERSON Where COMPANY_PERSON.COMPANY_SEQ_NUM = :CustomerID AND COMPANY_PERSON.PERSON_SEQ_NUM = :ContactID AND COMPANY_PERSON.RELATIONSHIP_CODE = :RelationshipCode
Operations and processes
Note: Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources
Business\SAIF.Business.CustomerContact\Customer\clsCustomerContact.vb