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 IT31207 Status: Closed

INCORRECT RESULT WHEN USING TWICE JOIN WITH THE SAME TABLE WITH GROUP BY

product:
DB2 FOR LUW / DB2FORLUW / B50 - DB2
Problem description:
Queries with following characteristic may return incorrect
results:
- GROUP BY query over base tables
- FROM references the same table more than once using aliases
- multiple columns in GROUP BY clause referencing same table
using different aliases
- one of GB column is primary/unique key and one column comes
from different alias of the same table
- PK column is referenced in SELECT, while column from different
alias is not referenced in SELECT

Sample query (tab1.id is primary key):
SELECT a.id FROM tab1 a, tab1 b WHERE a.c1 = b.c1 GROUP BY a.id,
b.c2 HAVING COUNT(*) > 1
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Db2 11.5 Mod 2 Fixpack 0 or higher                *
****************************************************************
Local Fix:
Solution
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : 
follow-up : IT31208 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
09.12.2019
18.02.2020
18.02.2020
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)