Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Data Warehouses C hapter 2. 2 Chapter 2 Outline Chapter 2 Outline – Introduction –Data Warehouses –Data Warehouse in Organisation – OLTP vs. OLAP –Why.

Similar presentations


Presentation on theme: "1 Data Warehouses C hapter 2. 2 Chapter 2 Outline Chapter 2 Outline – Introduction –Data Warehouses –Data Warehouse in Organisation – OLTP vs. OLAP –Why."— Presentation transcript:

1 1 Data Warehouses C hapter 2

2 2 Chapter 2 Outline Chapter 2 Outline – Introduction –Data Warehouses –Data Warehouse in Organisation – OLTP vs. OLAP –Why Separate Data Warehouse? – A multi-dimensional data model

3 3 Merger of Malaysian Banks

4 4 Jobstreet.com.my

5 5

6 6 Data Warehouses According to the original definition of Bill Inmon (1996), the father of data warehouses, a data warehouse is a subject-oriented, integrated, time- variant, non-volatile collection of data in support of management’s decision- making process. According to the original definition of Bill Inmon (1996), the father of data warehouses, a data warehouse is a subject-oriented, integrated, time- variant, non-volatile collection of data in support of management’s decision- making process.

7 7 Data Warehouse—Subject- Oriented Organized around major subjects, such as customer, product, sales. Organized around major subjects, such as customer, product, sales. Focusing on the modeling and analysis of data for decision makers, not on daily operations or transaction processing. Focusing on the modeling and analysis of data for decision makers, not on daily operations or transaction processing. Provide a simple and concise view around particular subject issues by excluding data that are not useful in the decision support process. Provide a simple and concise view around particular subject issues by excluding data that are not useful in the decision support process.

8 8 Data Warehouse—Integrated Constructed by integrating multiple, heterogeneous data sources Constructed by integrating multiple, heterogeneous data sources –relational databases, flat files, on-line transaction records Data cleaning and data integration techniques are applied. Data cleaning and data integration techniques are applied. –Ensure consistency in naming conventions, encoding structures, attribute measures, etc. among different data sources »E.g., Hotel price: currency, tax, breakfast covered, etc. –When data is moved to the warehouse, it is converted.

9 9 Data Warehouse—Time Variant The time horizon for the data warehouse is significantly longer than that of operational systems. The time horizon for the data warehouse is significantly longer than that of operational systems. –Operational database: current value data. –Data warehouse data: provide information from a historical perspective (e.g., past 5-10 years) Every key structure in the data warehouse Every key structure in the data warehouse –Contains an element of time, explicitly or implicitly –But the key of operational data may or may not contain “time element”.

10 10 Data Warehouse—Non-Volatile A physically separate store of data transformed from the operational environment. A physically separate store of data transformed from the operational environment. Operational update of data does not occur in the data warehouse environment. Operational update of data does not occur in the data warehouse environment. –Does not require transaction processing, recovery, and concurrency control mechanisms –Requires only two operations in data accessing: »initial loading of data and access of data.

11 11 data warehouses are the foundation of the business IT infrastructures that collect data from several dispersed information sources and are designed to allow decision makers have prompt access to information for purpose of reporting are the foundation of the business IT infrastructures that collect data from several dispersed information sources and are designed to allow decision makers have prompt access to information for purpose of reporting

12 Data Warehouse in Organisation Aetna Life uses IBM’s data warehouse and data mining tools to have a better understanding for meeting the specific needs of its customers Aetna Life uses IBM’s data warehouse and data mining tools to have a better understanding for meeting the specific needs of its customers –to estimate the performance of new products and services. Guinness Limited is a British company that has achieved its ability to be a major global force - while serving the local market needs to overcome the difficulties of extracting data from transaction processing systems for populating a data warehouse with valuable business information - while serving the local market needs to overcome the difficulties of extracting data from transaction processing systems for populating a data warehouse with valuable business information 12

13 Data Warehouse in Organisation Parkson Corporation Sdn Bhd is a Malaysian company that has increased marketing program efficiency and market share through implementation of data warehouse and data mining to work for its 29 stores in Malaysia Parkson Corporation Sdn Bhd is a Malaysian company that has increased marketing program efficiency and market share through implementation of data warehouse and data mining to work for its 29 stores in Malaysia 13

14 Data Warehouse in Organisation According to SAS Asia Pacific Risk Management Practice head, John Foulley said many banks in Malaysia had the problem of integrating their data efficiently and this had led to misplacement of information and poor quality data. According to SAS Asia Pacific Risk Management Practice head, John Foulley said many banks in Malaysia had the problem of integrating their data efficiently and this had led to misplacement of information and poor quality data. According to this statement, most of Malaysian banks do not have implementation of data warehouse yet. The local banks have to implement Basel II framework was instructed by Bank Negara for it is either 2008 or 2010. According to this statement, most of Malaysian banks do not have implementation of data warehouse yet. The local banks have to implement Basel II framework was instructed by Bank Negara for it is either 2008 or 2010. The framework addresses on credit and operational risks which requires the ready of data warehouse. The framework addresses on credit and operational risks which requires the ready of data warehouse. 14

15 Data Warehouse in Organisation Alliance Banking Group allocated 36 million to build data warehouse. Alliance Banking Group allocated 36 million to build data warehouse. Insurance Services Malaysia handles more than 50 insurance companies in Malaysia. They require insurance companies to deliver clean, structured data to them to build the data warehouse. Insurance Services Malaysia handles more than 50 insurance companies in Malaysia. They require insurance companies to deliver clean, structured data to them to build the data warehouse. 15

16 Data Warehouse in Organisation According to Malaysia's EON Bank, they have problem to access the complete view of the customer due to loan information sitting in one transactional system and credit details in another system. According to Malaysia's EON Bank, they have problem to access the complete view of the customer due to loan information sitting in one transactional system and credit details in another system. the AmBank Group has invested over RM10 million involving the implementation of data integration and management solution. the AmBank Group has invested over RM10 million involving the implementation of data integration and management solution. 16

17 17 OLTP vs. OLAP

18 18

19 19 Why Separate Data Warehouse? High performance for both systems High performance for both systems –DBMS— tuned for OLTP: access methods, indexing, concurrency control, recovery –Warehouse—tuned for OLAP: complex OLAP queries, multidimensional view, consolidation. Different functions and different data: Different functions and different data: –missing data: Decision support requires historical data which operational DBs do not typically maintain –data consolidation: DS requires consolidation (aggregation, summarization) of data from heterogeneous sources –data quality: different sources typically use inconsistent data representations, codes and formats which have to be reconciled

20 20 Relational View of Data/ Spreadsheet

21 21 From Tables/ Relations and Spreadsheets to Data Cubes A data warehouse is based on a multidimensional data model which views data in the form of a data cube A data warehouse is based on a multidimensional data model which views data in the form of a data cube A data cube, such as sales, allows data to be modeled and viewed in multiple dimensions A data cube, such as sales, allows data to be modeled and viewed in multiple dimensions –Dimension tables, such as item (item_name, brand, type), or time(day, week, month, quarter, year) –Fact table contains measures (such as dollars_sold) and keys to each of the related dimension tables

22 22 Conceptual Modeling of Data Warehouses Modeling data warehouses: dimensions & measures Modeling data warehouses: dimensions & measures –Star schema: A fact table in the middle connected to a set of dimension tables –Snowflake schema: A refinement of star schema where some dimensional hierarchy is normalized into a set of smaller dimension tables, forming a shape similar to snowflake

23 23 Star Schema

24 24 Another Example of Star Schema time_key day day_of_the_week month quarter year time location_key street city province_or_street country location Sales Fact Table time_key item_key branch_key location_key units_sold dollars_sold avg_sales Measures item_key item_name brand type supplier_type item branch_key branch_name branch_type branch

25 25 Example of Snowflake Schema time_key day day_of_the_week month quarter year time location_key street city_key location Sales Fact Table time_key item_key branch_key location_key units_sold dollars_sold avg_sales Measures item_key item_name brand type supplier_key item branch_key branch_name branch_type branch supplier_key supplier_type supplier city_key city province_or_street country city

26 26 Multidimensional Data Sales volume as a function of product, month, and region Sales volume as a function of product, month, and region Product Region Month Dimensions: Product, Location, Time Hierarchical summarization paths Industry Region Year Category Country Quarter Product City Month Week Office Day

27 27 A Sample Data Cube Total annual sales of TV in U.S.A. Date Product Country sum TV VCR PC 1Qtr 2Qtr 3Qtr 4Qtr U.S.A Canada Mexico sum

28 28 Browsing a Data Cube Visualization Visualization OLAP capabilities OLAP capabilities Interactive manipulation Interactive manipulation

29 29 Typical OLAP Operations Roll up (drill-up): summarize data Roll up (drill-up): summarize data –by climbing up hierarchy or by dimension reduction Drill down (roll down): reverse of roll-up Drill down (roll down): reverse of roll-up –from higher level summary to lower level summary or detailed data, or introducing new dimensions Slice and dice: Slice and dice: –project and select

30 30 OLAP Operations Single CellMultiple CellsSliceDice Roll Up Drill Down

31 31 Design of a Data Warehouse: A Business Analysis Framework Four views regarding the design of a data warehouse Four views regarding the design of a data warehouse –Top-down view »allows selection of the relevant information necessary for the data warehouse –Data source view »exposes the information being captured, stored, and managed by operational systems –Data warehouse view »consists of fact tables and dimension tables –Business query view »sees the perspectives of data in the warehouse from the view of end-user

32 32 Data Warehouse Back-End Tools and Utilities Data extraction: Data extraction: –get data from multiple, heterogeneous, and external sources Data cleaning: Data cleaning: –detect errors in the data and rectify them when possible Data transformation: Data transformation: –convert data from legacy or host format to warehouse format Load: Load: –sort, summarize, consolidate, compute views, check integrity, and build indicies and partitions Refresh Refresh –propagate the updates from the data sources to the warehouse


Download ppt "1 Data Warehouses C hapter 2. 2 Chapter 2 Outline Chapter 2 Outline – Introduction –Data Warehouses –Data Warehouse in Organisation – OLTP vs. OLAP –Why."

Similar presentations


Ads by Google