Tuning SQL workflow
The workflow for tuning a SQL statement typically includes the following steps:
To tune a SQL statement
- Select a SQL statement to be used as the baseline statement (Selecting-a-statement-for-SQL-Analysis).
- Perform an Explain on the statement (Explaining-SQL-statements).
- Create a What-If scenario based on the baseline statement (Creating-a-What-If-scenario).
- Compare the cost of the statements (Comparing-statements).
- Create a new What-If scenario.
Continue the process until you have optimized the statement.
For more information, view the Quick Course Workbench for DB2 - Analyzing SQL Performance.
Related topic
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*