IS 4420 Database Fundamentals Chapter 9: The Client/Server Database Environment Leon Chen.
1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.
-
Upload
tommy-roche -
Category
Documents
-
view
227 -
download
0
Transcript of 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.
![Page 1: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/1.jpg)
11
IS 4420Database Fundamentals
Chapter 11: Data Warehousing
Leon Chen
![Page 2: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/2.jpg)
2
Overview
What is data warehouse? Why data warehouse? Data reconciliation – ETL process Data warehouse architectures Star schema – dimensional modeling Data analysis
![Page 3: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/3.jpg)
3
Definition Data Warehouse:
A subject-oriented, integrated, time-variant, non-updatable collection of data used in support of management decision-making processes
Subject-oriented: e.g. customers, patients, students, products
Integrated: Consistent naming conventions, formats, encoding structures; from multiple data sources
Time-variant: Can study trends and changes Nonupdatable: Read-only, periodically refreshed
Data Mart: A data warehouse that is limited in scope
![Page 4: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/4.jpg)
4
Need for Data Warehousing Integrated, company-wide view of high-quality
information (from disparate databases) Separation of operational and informational
systems and data (for improved performance)
![Page 5: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/5.jpg)
5
Source: adapted from Strange (1997).
![Page 6: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/6.jpg)
6
Data Reconciliation Typical operational data is:
Transient – not historical Not normalized (perhaps due to denormalization for
performance) Restricted in scope – not comprehensive Sometimes poor quality – inconsistencies and errors
After ETL, data should be: Detailed – not summarized yet Historical – periodic Normalized – 3rd normal form or higher Comprehensive – enterprise-wide perspective Timely – data should be current enough to assist decision-
making Quality controlled – accurate with full integrity
![Page 7: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/7.jpg)
7
The ETL Process
Capture/Extract Scrub or data cleansing Transform Load and Index
![Page 8: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/8.jpg)
8
Static extract = capturing a snapshot of the source data at a point in time
Incremental extract = capturing changes that have occurred since the last static extract
![Page 9: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/9.jpg)
9
Fixing errors:Fixing errors: misspellings, erroneous dates, incorrect field usage, mismatched addresses, missing data, duplicate data, inconsistencies
Also:Also: decoding, reformatting, time stamping, conversion, key generation, merging, error detection/logging, locating missing data
![Page 10: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/10.jpg)
10
Record-level:Record-level:Selection – data partitioningJoining – data combiningAggregation – data summarization
Field-level:Field-level: single-field – from one field to one fieldmulti-field – from many fields to one, or one field to many
![Page 11: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/11.jpg)
11
Refresh mode:Refresh mode: bulk rewriting of target data at periodic intervals
Update mode:Update mode: only changes in source data are written to data warehouse
![Page 12: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/12.jpg)
12
Data Warehouse Architectures
Generic Two-Level Architecture Independent Data Mart Dependent Data Mart and
Operational Data Store Logical Data Mart and @ctive
Warehouse Three-Layer architecture
![Page 13: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/13.jpg)
13
Generic two-level architecture
E
T
LOne company-wide warehouse
Periodic extraction data is not completely current in warehouse
![Page 14: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/14.jpg)
14
Independent data mart Data marts:Data marts:Mini-warehouses, limited in scope
E
T
L
Separate ETL for each independent data mart
Data access complexity due to multiple data marts
![Page 15: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/15.jpg)
15
Dependent data mart with operational data store
ET
L
Single ETL for enterprise data warehouse (EDW)(EDW)
ODS ODS provides option for obtaining current data
Dependent data marts loaded from EDW
![Page 16: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/16.jpg)
16
ET
L
Near real-time ETL for @active Data Warehouse
ODS ODS and data warehousedata warehouse are one and the same
Data marts are NOT separate databases, but logical views of the data warehouse Easier to create new data marts
![Page 17: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/17.jpg)
17Three-layer data architecture
![Page 18: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/18.jpg)
18
Data CharacteristicsStatus vs. Event Data
Status
Status
Event – a database action (create/update/delete) that results from a transaction
![Page 19: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/19.jpg)
19
Data CharacteristicsData CharacteristicsTransient vs. Transient vs. Periodic DataPeriodic Data
Changes to existing records are written over previous records, thus destroying the previous data content
Data are never physically altered or
deleted once they have been added to
the store
![Page 20: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/20.jpg)
20
star schemastar schemaFact tables contain factual or quantitative data
Dimension tables contain descriptions about the subjects of the business
1:N relationship between dimension tables and fact tables
Excellent for queries, but bad for online transaction processing
Dimension tables are denormalized to maximize performance
![Page 21: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/21.jpg)
21
Star schema example
Fact table provides statistics for sales broken down by product, period and store dimensions
![Page 22: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/22.jpg)
22
Modeling dates
Fact tables contain time-period data Date dimensions are important
![Page 23: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/23.jpg)
23
![Page 24: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/24.jpg)
24
Issues Regarding Star Schema
Dimension table keys must be surrogate (non-intelligent and non-business related), because: Keys may change over time Length/format consistency
Granularity of Fact Table – what level of detail do you want? Transactional grain – finest level Aggregated grain – more summarized Finer grains better market basket analysis capability Finer grain more dimension tables, more rows in fact table
Duration of the database – how much history should be kept? Natural duration – 13 months or 5 quarters Financial institutions may need longer duration Older data is more difficult to source and cleanse
![Page 25: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/25.jpg)
25
On-Line Analytical Processing (OLAP)
The use of a set of graphical tools that provides users with multidimensional views of their data and allows them to analyze the data using simple windowing techniques
Relational OLAP (ROLAP) Traditional relational representation
Multidimensional OLAP (MOLAP) Cube structure
OLAP Operations Cube slicing – come up with 2-D view of data Drill-down – going from summary to more detailed
views
![Page 26: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/26.jpg)
26
Slicing a data cube
![Page 27: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/27.jpg)
27
Example:Drill-down
Summary report
Drill-down with color added
![Page 28: 1 IS 4420 Database Fundamentals Chapter 11: Data Warehousing Leon Chen.](https://reader036.fdocuments.in/reader036/viewer/2022062223/551a8d4f550346b52d8b5c40/html5/thumbnails/28.jpg)
28
Data Mining and Visualization
Knowledge discovery using a blend of statistical, AI, and computer graphics techniques
Goals: Explain observed events or conditions Confirm hypotheses Explore data for new or unexpected relationships
Data mining techniques Statistical regression Associate rule Classification Clustering
Data visualization – representing data in graphical / multimedia formats for analysis