Support for query plan evaluation

At the start of a SELECT statement, the database server initiates query planning. A query plan specifies the steps that the database server takes to fulfill a query with optimal efficiency.

The database server includes an optimizer, which compares various combinations of operations and chooses the query plan from among alternative approaches. To help the optimizer select the best query plan, provide reliable information about the cost for using the access method to select data.