A fix is available
APAR status
Closed as program error.
Error description
Incorrect out may occur when query contains RANKing functions and GROUP by expression. . Additional keyword: DB2INCORR/K
Local fix
N/Q
Problem summary
**************************************************************** * USERS AFFECTED: All DB2 R910 users using RANK/DENSE_RANK/ * * ROW_NUMBER. * **************************************************************** * PROBLEM DESCRIPTION: Incorrout may occur when query contains * * RANK/DENSE_RANK/ROW_NUMBER and * * group by expression(s). * **************************************************************** * RECOMMENDATION: * **************************************************************** Incorrout may occur when query contains RANK/DENSE_RANK/ ROW_NUMBER and group by expression(s). Following is an example of such failing scenario: SELECT C1, sum(C2), substr(C3,1,5), dense_rank() over (partition by C1 ORDER BY sum(C2) desc) as ORD FROM T1 WHERE C4 = 22 GROUP BY C1, substr(C3,1,5)
Problem conclusion
DB2 is fixed to process group by expression correctly when query contains RANK/DENSE_RANK/ROW_NUMBER. Additional keywords: SQLGROUPBY SQLRANK SQLDENSERANK SQLROWNUMBER SQLINCORR
Temporary fix
********* * HIPER * *********
Comments
APAR Information
APAR number
PK97872
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
910
Status
CLOSED PER
PE
NoPE
HIPER
YesHIPER
Special Attention
NoSpecatt
Submitted date
2009-10-05
Closed date
2009-12-14
Last modified date
2011-05-10
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UK52841
Modules/Macros
DSNXOWIN
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
R910 PSY UK52841
UP10/01/06 P F001
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.1","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
10 May 2011