Home » Microsoft » MB6-704 » What should you create in Vend Table?
You have a table named Vend Table that contains a field named Main Contact Worker. Main Contact Worker is the reference Recid. Many records in the Vend Table table have the same value for Main Contact Worker.
Users frequently search for data in the Vend Table table based on the Main Contact Worker field.
You need to ensure that when the users create queries that include the Main Contact Worker field in the where clause, the query results are returned in the least amount of time possible.
What should you create in Vend Table?
A. A unique index in Main Contact Worker
B. A surrogate key that is used as the primary index
C. A primary index for Main Contact Worker
D. A non-unique index in Main Contact Worker
Correct Answer: B
Explanation/Reference:
For new tables the default is a primary key based on the RecId field. This is represented as the surrogate key in the user interface.
PrimaryIndex: contains the surrogate key plus every index on the table that has its AlternateKey property set to Yes.
Note: If you store surrogate foreign key values in your tables, you will have to correctly work with these values in your Enterprise Portal integration. This involves creating a reference data source to link to the data that is accessed by the surrogate foreign key. It can also include using the AxReferenceField to access the surrogate foreign key value.
Reference: Table Keys: Surrogate, Alternate, Replacement, Primary, and Foreign [AX 2012]