Creating the Inventory Parts Table
You will now create the Inventory Parts Table for the Order Entry sample application.
Step 1: Create New Table
- Click the Create New Table button on the Table Explorer toolbar.
- In the Create New Table dialog, type
Inventoryas the Table Name and click Ok. - The new table will open in the Table Editor.
Step 2: Add Columns
Add columns to the table schema until your column definitions look like those in the image below.

Next, you will add indexes for this table.
Step 3: Add Indexes
- Click on the Add Index toolbar button on the Index tab to add a new index.
- Enter the Segments grid and select
Item_Idas the column to add as the first index segment from the combo box. This is the only segment for the first index, meaning that we will never be allowed to have two parts with the same item ID. This is what we want.
The completed index should look like this:

- Click on the Add Index toolbar button to add index 2. The segments of this index will be
Vendor_Id,Vendor_Part_Id, andItem_Id.
The completed index should look like this:

- Click on the Add Index toolbar button to add index 3. The segments of this index will be
DescriptionandItem_Id.
The completed index should look like this:

Step 4: Add Relationships
Next, you will add relationships for this table.
- Click on the Add Relationship toolbar button on the Relationships tab to add a new relationship.
This will open the Add a Relationship dialog. - Select the Vendor table and click Ok.
- In the relationship Column Pairs grid, select
Vendor_Idin the From Inventory column andIdin the To Vendor column.
The completed relationship should look like this:

Step 5: Save the Table Schema
- Click the Save File toolbar button (or press
Ctrl + S) to save the table schema.
The Output window will display the results of the save operation.
Note that a Data Dictionary is automatically created when you create a new table (when you save the table the first time).