Creating the Sales Persons Table
You will now create the Sales Persons Table for the Order Entry sample application.
-
Click the Create New Table button on the Table Explorer toolbar.
In the Create New Table dialog, typeSalesPersonas the Table Name and click OK.
The new table will open in the Table Editor. -
Click on the Add Column toolbar button in the Table Editor to add a new column.
TypeIdas the Name of the first column to add and press the Tab key to move to the Type column. ChooseASCIIas the column type from the combo box (you can just typeAto do so) and press Tab; make the length4.0and press Tab twice to move to the next row. -
Type
Nameas the Name of the next column to add and press the Tab key to move to the Type column. ChooseASCIIas the column type from the combo box (you can just typeAto do so) and press Tab; make the length25.0. -
Type
Avataras the Name of the next column to add and press the Tab key to move to the Type column. ChooseASCIIas the column type from the combo box (you can just typeAto do so) and press Tab; make the length20.0.
When complete, your column definitions will look like those in the image below.

Next, you will add indexes for this table.
- Click on the Add Index toolbar button on the Index tab to add a new index.
Enter the Segments grid and selectIdas 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 sales persons with the same 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
NameandId.
The completed index should look like this:

- 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).