Calculate the Table Order Permutations

To run your SQL query as efficiently as possible, the Query Processor calculates the most effective order in which to access the tables you have referenced. To do this, the Query Processor examines the joins in your query and works out every possible order it could use to access the tables you have referenced. These orders are called permutations, and for each permutation, the Query Processor is able to establish:

So for each permutation, there is a join order, and one or more access paths. The join order and access paths for a single permutation are referred to as the permutation’s access plan. The Query Processor uses the access plan that has the lowest cost (see Calculate the Cost and Determine the Final Access Plan).

When calculating the join orders for accessing the tables, the Query Processor:

For information on how the Query Processor calculates the cost of each access plan, see Calculate the Cost and Determine the Final Access Plan.


Disclaimer

ClearSCADA 2017 R3