home clear 64x64
en blue 200x116 de orange 200x116 info letter User
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 IC99234 Status: Closed

IMPROVE QUERY PERFORMANCE WHEN QUERY CONTAINS CARTESIAN JOIN OVER SELECT
DISTINCT FROM ALIAS

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
A select distinct subquery may be consolidated to the outer 
query block by db2 compiler in sought of better join planning 
for the outer query block, although that postpones the 
duplicated rows removal of the subquery. But if the select 
distinct subquery result participates in no join predicate of 
the outer query block, i.e. this outer query has cartesian join, 
preserving select distinct to remove duplication before 
performing the cartesian join is a better plan. This heuristic 
used to be available to subquery "select distinct from 
base_table" and is now extended to subquery "select distinct 
from alias"
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to V10.5 Fixpack 3                                   * 
****************************************************************
Local Fix:
Manually rewrite "select distinct col1, col2, ..., colN from 
alias" to "select col1, col2, ..., colN from alias group by 
col1, col2, ..., colN".
available fix packs:
DB2 Cancun Release 10.5.0.4 (also known as Fix Pack 4) for Linux, UNIX, and Windows
DB2 Version 10.5 Fix Pack 9 for Linux, UNIX, and Windows

Solution
Upgrade to V10.5 Fixpack 3
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
07.02.2014
17.09.2014
17.09.2014
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.5.0.4 FixList