Download presentation
Presentation is loading. Please wait.
Published byRoberta Turner Modified over 8 years ago
1
1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 8 March 22 Creating a Matrix and Drill-down/Roll-up ReportCreating a Matrix and Drill-down/Roll-up Report
2
2 R. Ching, Ph.D. MIS Area California State University, Sacramento Create the SQL Tables SQL
3
3 R. Ching, Ph.D. MIS Area California State University, Sacramento Create the Data Model
4
4 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Wizard Select Matrix
5
5 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Wizard
6
6 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Wizard Rows
7
7 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Wizard Columns
8
8 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Wizard
9
9 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Wizard
10
10 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Wizard Change to small column width
11
11 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Wizard
12
12 R. Ching, Ph.D. MIS Area California State University, Sacramento Initial Report Layout Column totals Redundant
13
13 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Layout Eliminate
14
14 R. Ching, Ph.D. MIS Area California State University, Sacramento Layout Model Remove
15
15 R. Ching, Ph.D. MIS Area California State University, Sacramento Layout Model Separate frames Push button
16
16 R. Ching, Ph.D. MIS Area California State University, Sacramento Push Button Property Palette Leave at least a space
17
17 R. Ching, Ph.D. MIS Area California State University, Sacramento Live Previewer
18
18 R. Ching, Ph.D. MIS Area California State University, Sacramento Programming the Drill-Down/Roll-Up Report Parameters names cannot be the same! Data Model 2 Parameter-list1Parameter-list1 Parameter-list2Parameter-list2 Data Model 1 Data Model 2 Master Report (Annual) Drill-down Report (Quarters) (Months)
19
19 R. Ching, Ph.D. MIS Area California State University, Sacramento
20
20 R. Ching, Ph.D. MIS Area California State University, Sacramento
21
21 R. Ching, Ph.D. MIS Area California State University, Sacramento From previous report p_class_description p_year
22
22 R. Ching, Ph.D. MIS Area California State University, Sacramento Warning! Following this code verbatim will be a detriment to your grade Transfer values from parameters and columns to local variables Parameter names should be different from those defined for this report Transfer values from parameters and columns to local variables
23
23 R. Ching, Ph.D. MIS Area California State University, Sacramento From previous report p_year p_quarter3 p_class_description
24
24 R. Ching, Ph.D. MIS Area California State University, Sacramento Creating a Lexical Reference Variable Create a lexical reference variable under User Parameters of the Data Model (in the Object Navigator)Create a lexical reference variable under User Parameters of the Data Model (in the Object Navigator) Create Select
25
25 R. Ching, Ph.D. MIS Area California State University, Sacramento Create a User Parameter Select the new parameter, right- mouse click and select Property Palette
26
26 R. Ching, Ph.D. MIS Area California State University, Sacramento Change the Properties Change the name Change the data type to character Assign an initial value (optional)
27
27 R. Ching, Ph.D. MIS Area California State University, Sacramento Warning! Add after creating the initial data and layout models select manufacturer_name, to_char(sales_month_98,'fmmm') Sequence, to_char(sales_month_98,'Mon') Month, &p_revenue3, &p_volume3 from sales_97_98 s, manufacturers m where s.manufacturer_code = m.manufacturer_code and m.manufacturer_code = upper(:p_manufacturer_code3) and to_char(sales_month_98,'q') = :p_quarter3 and s.product_class_code = upper(:p_product_class_code3) group by manufacturer_name, to_char(sales_month_98,'fmmm'), to_char(sales_month_98,'Mon') order by to_char(sales_month_98,'fmmm'); select manufacturer_name, to_char(sales_month_98,'fmmm') Sequence, to_char(sales_month_98,'Mon') Month, &p_revenue3, &p_volume3 from sales_97_98 s, manufacturers m where s.manufacturer_code = m.manufacturer_code and m.manufacturer_code = upper(:p_manufacturer_code3) and to_char(sales_month_98,'q') = :p_quarter3 and s.product_class_code = upper(:p_product_class_code3) group by manufacturer_name, to_char(sales_month_98,'fmmm'), to_char(sales_month_98,'Mon') order by to_char(sales_month_98,'fmmm'); Otherwise, ORDER BY ignored Enlargement Lexical reference variables
28
28 R. Ching, Ph.D. MIS Area California State University, Sacramento During Runtime... Lexical reference variables (default values) Host variable
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.