57.2.6 Query Store: Command: Join
You will rarely use this command - left for legacy purposes. Use the Join Set command instead.
After selecting Join from the drop down menu or after clicking on a Join line in the Query Display pane, you will see the Join editor controls:
This command allows you to create a selection of records based on another selection of records if there is a relationship between the two Tables that the two selections of records belong to.
a The Join editor in STATIC is very sophisticated. It combines an automatic Relations editor (invisible to the user) with a very fast algorithm that can generate a selection of records from any other selection of records - as long as they are related.
b The Join command works on Selections of records NOT on Sets. If the last action resulted in a Set then the you MUST use the command Use Set (Result Set) in order to create a selection of records that the Join command can then work on. If the last command created a selection then you can use the Join command straight away.
c The Join command does not care about the direction of the relationships nor if the relationship has several intermediate Tables. The Target Table selection will always be created.
d The Join command allows you to perform Queries that are difficult or impossible using just the Query and Query By Formula commands.
How do you know two Tables are related?
If the Join editor gives you the option to select two tables then they are related - it is a simple as that. All the hard work has been taken care of for you. You do not even need to know the name of the key fields that relate the two tables. The invisible Relations editor has already been programmed with all the paths between all the Tables you can Query. You can view the path between the two Tables selected in the Steps taken for Join field.
Our Join command completely avoids circular relationships. These are relations that loop back on themselves. Because the Relationship paths are all preset by the Relations Editor, all circular relations are already detected and filtered out.
|