In this topic you will learn how to create Related Record Joins.
Navigation: Click the Main Menu link > Reporting Tools > Query > Query Manager
In a related join, you can automatically join two records based on a relationship that has been predefined in the record designer. The Related Record Joins displays as a link to the right of the field. The criteria relationship between the fields has already been identified, so no criterion needs to be added.
In this example you will create a query to retrieve Inventory item ID, Manufacturer's ID, and the Manufacturer's name.
In order to retrieve our data, we will need to join two records, the ITEM_MFG and the MANUFACTURER.
Click the Run tab to preview your query results.
Click the Query tab to join the MANUFACTURER - Manufacturer Table record.
Click the Join MANUFACTURER - Manufacturer Table link
NOTE: Like Hierarchy Joins, Related Record Joins are predefined in the system. The relationship between the fields has already been identified, so no criterion needs to be added.
In the Join Type box, the "Join to filter and get additional fields (Standard Joins) option defaults and should remain as defaulted.
Click the OK button.
NOTE: The (B) alias record has been assigned to the MANUFACTURER record.
Click the Run tab to preview your query results.
Click the OK button.
NOTE: Add Criteria to the SETID and INV_ITEM_ID fields to retrieve a small data sample for testing.
If the query produced the desired results, you would save and name your query.
Click the Save As link.
Enter the constants for Inventory items. In this example you are looking for inventory item ID's between: 102000 - 102500.
This completes Related Record Joins.