suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT23260 Status: Closed

INCORRECT RESULTS WITH AGGREGATION ON OUTER JOINED TABLE WITH FOREIGN KEY
ON NULL PRODUCING TABLE

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
Incorrect results might be observed from queries:
1. contain at least one of these aggregations:
   COUNT(*), COUNT_BIG(*), COUNT(CONSTANT), COUNT_BIG(CONSTANT),
SUM(CONSTANT), MAX(CONSTANT) and MIN(CONSTANT)
2. the aggregations are on outer joined tables;
3. a foreign key on the NULL producing table of the outer join
references the primary key on the table at the other side of the
outer join;

An example query:
SELECT T1.X, COUNT (*) as c1 from TABLE_1 T1 left join TABLE_2
T2 on (T1.X = T2.Y) group by T1.X

whereas TABLE_1.X is the primary key and TABLE_2.Y is a foreign
key referencing the primary key TABLE_1.X
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* All DB2 Users                                                *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to DB2 for LUW 10.5 Fix Pack 10 or later.            *
****************************************************************
Local Fix:
Set OPT level 1. This can be done by running:
db2set DB2_OPTPROFILE=YES
Then adding the following text after the problematic query:
/* 
     
 */
Solution
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : 
follow-up : IT23261 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
23.11.2017
12.07.2018
12.07.2018
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)