© Copyright IBM Corp. 2003. All rights reserved. xxvii
Examples
3-1 Derived measure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
3-2 Additive, semi-additive measures . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
3-3 Calculated measure: Profit = Sales - Cost. . . . . . . . . . . . . . . . . . . . . . 120
3-4 Complex measure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
3-5 Two parameter function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
3-6 Calculated attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
3-7 Gender flag and gender description attribute relationship . . . . . . . . . . 122
4-1 MQT example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
4-2 MQT creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
4-3 Query that requires referential integrity . . . . . . . . . . . . . . . . . . . . . . . . 137
4-4 Query that does not requires referential integrity. . . . . . . . . . . . . . . . . 138
4-5 Checking the validity on an informational constraint . . . . . . . . . . . . . . 140
4-6 The MOLAP outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
4-7 An abbreviated MQT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
4-8 db2advis options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
4-9 db2advis input file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
4-10 Query to the top of the cube . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
4-11 Querying down the cube . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
4-12 Query moving towards the middle of the cube. . . . . . . . . . . . . . . . . . . 194
6-1 SQL for a retrieval in Office Connect . . . . . . . . . . . . . . . . . . . . . . . . . . 242
6-2 Drill down to West region SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
6-3 Drill down to SKINCARE products . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
7-1 Unsupported cube error message . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
8-1 Sample run XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
10-1 Profit: calculated measure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
10-2 Sales per unit: calculated measure . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
10-3 Profit %: calculated measure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
10-4 Lookup member names for H1_Query 1 . . . . . . . . . . . . . . . . . . . . . . . 470
10-5 Fetch data for H1_Query 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470
11-1 SQL example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502
12-1 SQL 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574
12-2 SQL 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
12-3 SQL 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579
13-1 Measure Profit edited. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
13-2 Asymmetric measure example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
14-1 XML Representation of the Sales Cube slice . . . . . . . . . . . . . . . . . . . 632
14-2 XML ouput for Execute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635
C-1 db2md_config.xml . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671

Get DB2 Cube Views: A Primer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.