mpi_memcont and mpi_memcont_h

The mpi_memcont table stores provider information associate with a member.

Expanded name
Member Contract Data
Table category
This member table stores information about contracts associated with a specific provider. The “_h” table supports the storage of point-in-time history.
This table is a child table of mpi_memhead. The record must belong to one of the defined segments specified in mpi_segattr. Record creation and modification times are associated with mpi_audhead records.
Table 1. mpi_memcont Attribute Descriptions
Attribute Description
daudrecno Deletion of this particular record, from mpi_audhead. This field only appears in the "_h" table.
memrecno Unique member number from mpi_memhead
memseqno Member Sequence Number is a system generated value used to provide a unique primary key for attributes rows within a member; obtained from mpi_memhead.

The operational server permits multiple values for a given attribute type (for example, HOMEPHONE). The value is generated by looking at the value in mpi_memhead.memseqno. When a member is new, this value is 1. Each time an attribute is added for the member, the memseqno value is incremented. Later, attributes might get deleted or trimmed by the auto-history-purge mechanism and there can be gaps in the number sequence. The gap in sequence is not important; the software just cares that there is a unique value for each existing row.

Currently the operational server does not reference memseqno for attribute history management. Rather common values are collapsed into a single row in the database with a date stamp for the first time the value was seen in the database. A date stamp for the last time the database knew this value to be true is also stored. By maintaining memseqno however, the ability to modify history management if required in future versions is retained.

caudrecno Creation of this particular record, from mpi_audhead
maudrecno Last time the record value was modified, from mpi_audhead
recstat Record status; options are:

A – Active. The record is current and should be used in all matching-related activities.

I – Inactive. The record is not current and should not be used in matching-related activities, but is retained for retrieval due to historical significance.

D – Deleted. The record is marked for deletion, pending a purge of data, and should not be used in matching-related activities.

S – Shadow. The record is current, and should be used in all matching-related activities. The record is somewhat in limbo, pending verification due to workflow-related activities in the task-oriented tables.

attrrecno Attribute record number, from mpi_segattr
asaidxno Attribute Sparse Array Index; used to subdivide a given attribute and permit the association of multiple occurrences of the same attribute type.

The primary function of asaidxno is to direct the placement of attribute values from source systems into slots in the MDM database. For example, multiple Name values can be received from a single source. If the source system can distinguish between the multiple names, you can use asaidxno to make sure that the MDM database keeps that same distinction. An asaidxno number is assigned to each incoming value and the value is then slotted accordingly in the MDM database, such as HOMEPHONE[1] 111-1111, HOMEPHONE[2] 222-2222, HOMEPHONE[3] 333-3333.

The source system can then specify that they are changing the value for the HOMEPHONE[1], as opposed to a non-asaidxno setup where all of the phone values would be mixed together.

Asaidxno further works in association with the nsActive and nsExists settings in mpi_segattr to enable the process of tracking active and inactive values at the asaidxno level (mpi_segattr).

The inbound message broker process uses the asaidxno to indicate where to store the attribute value in the MDM database, while the outbound message broker process uses it to direct the return of attribute values from the MDM database to the source.

ctrname Contract name
ctrid Contract identifier
ctrmasname Contract master name
ctrlob Contract line of business
ctrcenter Contract center
ctrnetwork Contract network
ctrdeal Contract deal information
ctrcisid Contract center identifier
ctrmarket Contract market
ctreffdate Contract effective date
ctrenddate Contract end date

mpi_memcont SQL:

CREATE TABLE mpi_memcont 
daudrecno	bigint		NOT NULL, 
memrecno	bigint		NOT NULL,
memseqno	smallint	NOT NULL,
caudrecno	bigint		NOT NULL,
maudrecno	bigint		NOT NULL,
recstat		nchar(1)	NOT NULL,
attrrecno	smallint	NOT NULL,
asaidxno	smallint	NOT NULL,
ctrname		nvarchar(60)	NULL,
ctrid		nvarchar(12)	NULL,
ctrmasname	nvarchar(60)	NULL,
ctrmasid	nvarchar(12)	NULL,
ctrlob		nvarchar(12)	NULL,
ctrcenter	nvarchar(10)	NULL,
ctrnetwork	nvarchar(12)	NULL,
ctrdeal		nvarchar(6)	NULL,
ctrcisid	nvarchar(9)	NULL,
ctrsegnum	nvarchar(3)	NULL,
ctrparcd	nvarchar(9)	NULL,
ctrmarket	nvarchar(12)	NULL,
ctreffdate	datetime	NULL,
ctrenddate	datetime	NULL
CREATE UNIQUE INDEX mpi_memcont1 ON mpi_memcont (memrecno, memseqno)