DB2 - Problem description
Problem IC86983 | Status: Closed |
SQL901N may be returned when using an aggregate function not referencing any columns | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
When all of the following conditions are satisfied, SQL901N may be returned. - the query has an aggregate function - the aggregate function parameter does not reference any column - the function parameter does not include a non-deterministic or external action function The error message will be: SQL0901N The SQL statement failed because of a non-severe system error. Subsequent SQL statements can be processed. (Reason "Bad Plan; Unresolved QNC found".) SQLSTATE=58004 The trace stack looks like the following: sqlzeDumpFFDC sqlzeSqlCode sqlnn_erds sqlnn_erds sqlng_process_parse_tree_node sqlng_process_BF_node sqlng_walk_HXP_chain sqlng_build_thread sqlng_build_thread sqlng_process_top_box sqlng_main sqlng_main sqlnn_cmpl sqlnn_cmpl sqlra_compile_var sqlra_find_var sqlra_get_var sqlrr_prepare | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Version 9.7 Fix Pack 8 * **************************************************************** | |
Local Fix: | |
Since there is no column reference, the aggregate function is unnecessary. The general workaround would be to simply remove the unneeded aggregate function. | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows | |
Solution | |
First fixed in DB2 Version 9.7 Fix Pack 8 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 04.10.2012 19.04.2013 19.04.2013 |
Problem solved at the following versions (IBM BugInfos) | |
9.7.FP8 | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.8 |