This example creates a join between Departments table and Employees table, using
equivalent values in columns from the two tables. Follow these steps
to create a joined index called dept_emp_jdx.
- Right-click Join Indexes, point
to New, choose Join Index.
- Type the name of your new join index, dept_emp_jdx,
in the Name box.
- In the Join Type dropdown box, select ON. The ON clause
is required to join equivalent columns with the same name (dept_id)
from two tables.
- Choose Departments for the left
table.
- Choose Employees for the right
table.
- Click Next.
- In the Choose Index Columns dialog, select the desired
Left Table column, DepartmentID and the Right
Table column DepartmentID.
- Click Add. After you add the two columns, they appear
in the Join Index Columns box as GROUP0.Departments.DepartmentID=GROUP0.employees.DepartmentID.
(You may have to scroll to read the entire join.)
- Click Next.
- On the Add Comment screen, type the following to describes
the join index, Join index for Departments and
Employees. Click Finish.
- The dept_emp_jdx join
index appears in the Join Indexes folder.
For detailed information about planning and creating join
indexes, see System Administration Guide: Volume 1.