Optimization Options
From SQL Optimizer for IBM DB2 z/OS
Optimization Options
Note: This topic focuses on information that may be unfamiliar to you. It does not include all step and field descriptions.
To set Optimization options
- Click
. -
Select Optimize SQL | SQL Rewrite | Optimization
View to Nested Table Transformation
This transformation is only applicable if the SQL statement is using a view to access information from the database. When a SQL statement is using a view, the SQL Rewrite optimizes the view's SQL statement along with the original SQL statement. SQL Rewrite inserts the view's SQL into the original SQL statement in every place the view is referenced. Therefore the view's SQL is going to be rewritten along with the original SQL. This is very useful when you want to optimize a SQL statement that is using a poor performing view but you cannot change the view's SQL.
Query to Derived Table Transformation
This transformation takes a original SQL statement with an IN or EXISTS clause and rewrites it as a derived table.
| Query to derived table transformation option | Description |
|
Transform query to derived table |
Specify whether to transform the query to a derived table - a subquery used as a table in a FROM clause. |
Advanced SQL transformation
Join Tables
Related Topics