Troubleshooting
Problem
Cause
Resolving The Problem
1 - The query contains grouping fields (GROUP BY) from more than one file, or contains grouping fields from a secondary file of a join query that cannot be reordered.
2 - The query contains ordering fields (ORDER BY) from more than one file, or contains ordering fields from a secondary file of a join query that cannot be reordered.
3 - The grouping and ordering fields are not compatible.
4 - DISTINCT was specified for the query.
5 - Set operator (UNION, EXCEPT, or INTERSECT) was specified for the query.
6 - The query had to be implemented using a sort. More than 120 key fields specified for ordering.
7 - The query optimizer chose to use a sort rather than an access path to order the results of the query.
8 - Perform specified record selection to minimize I/O wait time.
9 - The query optimizer chose to use a hashing algorithm rather than an access path to perform the grouping for the query.
10 - The query contains a join condition that requires a temporary file.
11 - The query optimizer creates a run-time temporary file in order to implement certain correlated group by queries.
12 - The query contains grouping fields (GROUP BY, MIN/MAX, COUNT, etc.) and there is a read trigger on one or more of the underlying physical files in the query.
13 - The query involves a static cursor or the SQL FETCH FIRST clause.
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
18 December 2019
UID
ibm10874408