DB2 - Problem description
Problem IT22494 | Status: Closed |
QUERY CONTAINS COUNT(CONSTANT) OR COUNT_BIG(CONSTANT) MIGHT RETURN INCORRECT RESULT | |
product: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
Problem description: | |
Wrong results might be observed when: 1. a query contains COUNT(constant) or COUNT_BIG(constant); 2. the COUNT or COUNT_BIG aggregation is on an outer joined table; 3. the table on the right hand side of a left outer join or the table on the left hand side of a right outer join has more rows than the table on the other side of the outer join. Example : $ db2 "select count(1) from temp_cust_no_p a left join temp_a_rpt_dp_acct b on a.CUST_NO=b.CUST_NO" 1 ----------- 327383 | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * NONE * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to v105fp10 * **************************************************************** | |
Local Fix: | |
db2set DB2_REDUCED_OPTIMIZATION=NO_PEA | |
Solution | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 22.09.2017 16.07.2018 16.07.2018 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |