Dimensional Modelling by Example

Total Page:16

File Type:pdf, Size:1020Kb

Dimensional Modelling by Example Dimensional Modelling by Example Dimensional Modelling by Example Barry Williams [email protected] Page 1 04/09/2014 13:02 Dimensional Modelling by Example 1. Management Summary ............................................................................................................ 5 1.1 The Purpose of this Book ................................................................................................... 5 1.2 The Contents of this Book ................................................................................................. 5 1.3 Three Stages .......................................................................................................................... 5 1.4 What are Dimensional Models ? ..................................................................................... 5 1.5 Data Marts ............................................................................................................................... 6 1.6 Best Practice ........................................................................................................................... 7 1.7 Types of Dimensional Models .......................................................................................... 7 1.8 How to use the Dimensional Models ........................................................................... 12 2. Getting Started .......................................................................................................................... 12 2.1 Design Guidelines - a Four-Step Approach .............................................................. 12 2.2 Always use Surrogate Keys ............................................................................................ 12 2.3 Agree an Architecture ....................................................................................................... 13 2.4 Conceptual Data Models .................................................................................................. 18 2.5 Using Dimensional Models for Reports ....................................................................... 21 2.6 Dates and Flattened Hierarchies .................................................................................. 22 3. Reaching Maturity ..................................................................................................................... 23 3.1 Semantic Layer ................................................................................................................... 23 3.2 Self-Service BI ..................................................................................................................... 25 3.3 Churn - Analysing Churn Rate ....................................................................................... 25 3.4 Promotions – Analysing Promotions Effectiveness ................................................ 27 3.5 Conformed Dimensions .................................................................................................... 29 3.6 Systems and Design Patterns ........................................................................................ 30 3.7 Add new Requirements .................................................................................................... 31 4. Keeping Things Ticking Over ................................................................................................ 31 4.1 Governance ........................................................................................................................... 31 Page 2 04/09/2014 13:02 Dimensional Modelling by Example 4.2 Data Quality.......................................................................................................................... 31 4.3 User Involvement ............................................................................................................... 31 Appendix A. Library of Dimensional Models ......................................................................... 32 A.1 Advertising ............................................................................................................................ 32 A.2 Afghanistan Encounters ................................................................................................... 34 A.3 Airline Operations ............................................................................................................... 36 A.4 American Studies ............................................................................................................... 38 A.5 Amusement Parks .............................................................................................................. 40 A.6 Anti Money-Laundering .................................................................................................... 42 A.7 Banking – Investment ...................................................................................................... 44 A.8 Banking – Retail .................................................................................................................. 46 A.9 Boy Scouts ............................................................................................................................ 48 A.10 Clown Registry .................................................................................................................. 50 A.11 Commercial Properties .................................................................................................. 52 A.12 Cruise Ships ....................................................................................................................... 54 A.13 Customers and Car Parts .............................................................................................. 56 A.14 Day at the Olympics ....................................................................................................... 58 A.15 Dog the Bounty Hunter ................................................................................................. 60 A.16 Dog Whisperer .................................................................................................................. 62 A.17 Financial Services ............................................................................................................ 64 A.18 Football ................................................................................................................................ 66 A.19 e-Commerce ..................................................................................................................... 68 A.20 Entertainment ................................................................................................................... 70 A.21 Event Processing .............................................................................................................. 72 A.22 Golf Memorabilia .............................................................................................................. 74 A.23 Gym Training Diaries ...................................................................................................... 76 A.24 Hotel Reservations .......................................................................................................... 78 Page 3 04/09/2014 13:02 Dimensional Modelling by Example A.25 Insurance ............................................................................................................................ 80 A.26 Library Donations ............................................................................................................ 82 A.27 Local Government ........................................................................................................... 84 A.28 Logistics ............................................................................................................................... 86 A.29 Pharmaceutical Companies .......................................................................................... 88 A.30 Pool Hall Management ................................................................................................... 91 A.31 Property Tax Appeal ....................................................................................................... 93 A.32 Public Transport ............................................................................................................... 95 A.33 Puppies Tricks ................................................................................................................... 97 A.34 Radio Stations ................................................................................................................... 99 A.35 Recycling and Garbage Collection ........................................................................... 101 A.36 Restaurant Guides ......................................................................................................... 103 A.37 Retail .................................................................................................................................. 105 A.38 Student Registration ................................................................................................... 107 A.39 Telecomms Companies .............................................................................................. 109 A.40 Tracking Printer Cartridges ........................................................................................ 111 A.41 Traffic Cops and Tickets .............................................................................................. 113 A.42 Travel and Transport ...................................................................................................
Recommended publications
  • Normalized Form Snowflake Schema
    Normalized Form Snowflake Schema Half-pound and unascertainable Wood never rhubarbs confoundedly when Filbert snore his sloop. Vertebrate or leewardtongue-in-cheek, after Hazel Lennie compartmentalized never shreddings transcendentally, any misreckonings! quite Crystalloiddiverted. Euclid grabbles no yorks adhered The star schemas in this does not have all revenue for this When done use When doing table contains less sensible of rows Snowflake Normalizationde-normalization Dimension tables are in normalized form the fact. Difference between Star Schema & Snow Flake Schema. The major difference between the snowflake and star schema models is slot the dimension tables of the snowflake model may want kept in normalized form to. Typically most of carbon fact tables in this star schema are in the third normal form while dimensional tables are de-normalized second normal. A relation is danger to pause in First Normal Form should each attribute increase the. The model is lazy in single third normal form 1141 Options to Normalize Assume that too are 500000 product dimension rows These products fall under 500. Hottest 'snowflake-schema' Answers Stack Overflow. Learn together is Star Schema Snowflake Schema And the Difference. For step three within the warehouses we tested Redshift Snowflake and Bigquery. On whose other hand snowflake schema is in normalized form. The CWM repository schema is a standalone product that other products can shareeach product owns only. The main difference between in two is normalization. Families of normalized form snowflake schema snowflake. Star and Snowflake Schema in Data line with Examples. Is spread the dimension tables in the snowflake schema are normalized. Like price weight speed and quantitiesie data execute a numerical format.
    [Show full text]
  • The Design of Multidimensional Data Model Using Principles of the Anchor Data Modeling: an Assessment of Experimental Approach Based on Query Execution Performance
    WSEAS TRANSACTIONS on COMPUTERS Radek Němec, František Zapletal The Design of Multidimensional Data Model Using Principles of the Anchor Data Modeling: An Assessment of Experimental Approach Based on Query Execution Performance RADEK NĚMEC, FRANTIŠEK ZAPLETAL Department of Systems Engineering Faculty of Economics, VŠB - Technical University of Ostrava Sokolská třída 33, 701 21 Ostrava CZECH REPUBLIC [email protected], [email protected] Abstract: - The decision making processes need to reflect changes in the business world in a multidimensional way. This includes also similar way of viewing the data for carrying out key decisions that ensure competitiveness of the business. In this paper we focus on the Business Intelligence system as a main toolset that helps in carrying out complex decisions and which requires multidimensional view of data for this purpose. We propose a novel experimental approach to the design a multidimensional data model that uses principles of the anchor modeling technique. The proposed approach is expected to bring several benefits like better query execution performance, better support for temporal querying and several others. We provide assessment of this approach mainly from the query execution performance perspective in this paper. The emphasis is placed on the assessment of this technique as a potential innovative approach for the field of the data warehousing with some implicit principles that could make the process of the design, implementation and maintenance of the data warehouse more effective. The query performance testing was performed in the row-oriented database environment using a sample of 10 star queries executed in the environment of 10 sample multidimensional data models.
    [Show full text]
  • Chapter 7 Multi Dimensional Data Modeling
    Chapter 7 Multi Dimensional Data Modeling Fundamentals of Business Analytics” Content of this presentation has been taken from Book “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Published by Wiley India Pvt. Ltd. and it will always be the copyright of the authors of the book and publisher only. Basis • You are already familiar with the concepts relating to basics of RDBMS, OLTP, and OLAP, role of ERP in the enterprise as well as “enterprise production environment” for IT deployment. In the previous lectures, you have been explained the concepts - Types of Digital Data, Introduction to OLTP and OLAP, Business Intelligence Basics, and Data Integration . With this background, now its time to move ahead to think about “how data is modelled”. • Just like a circuit diagram is to an electrical engineer, • an assembly diagram is to a mechanical Engineer, and • a blueprint of a building is to a civil engineer • So is the data models/data diagrams for a data architect. • But is “data modelling” only the responsibility of a data architect? The answer is Business Intelligence (BI) application developer today is involved in designing, developing, deploying, supporting, and optimizing storage in the form of data warehouse/data marts. • To be able to play his/her role efficiently, the BI application developer relies heavily on data models/data diagrams to understand the schema structure, the data, the relationships between data, etc. In this lecture, we will learn • About basics of data modelling • How to go about designing a data model at the conceptual and logical levels? • Pros and Cons of the popular modelling techniques such as ER modelling and dimensional modelling Case Study – “TenToTen Retail Stores” • A new range of cosmetic products has been introduced by a leading brand, which TenToTen wants to sell through its various outlets.
    [Show full text]
  • ER/Studio Enterprise Data Modeling
    ER/Studio Enterprise Data Modeling ER/Studio®, a model-driven data architecture and database design solution, helps companies discover, document, and reuse data assets. With round-trip database support, data architects have the power to thoroughly analyze existing data sources as well as design and implement high quality databases that reflect business needs. The highly-readable visual format enhances communication across job functions, from business analysts to application developers. ER/Studio Enterprise also enables team and enterprise collaboration with its repository. • Enhance visibility into your existing data assets • Effectively communicate models across the enterprise Related Products • Improve data consistency • Trace data origins and whereabouts to enhance data integration and accuracy ER/Studio Viewer View, navigate and print ER/Studio ENHANCE VISIBILITY INTO YOUR EXISTING DATA ASSETS models in a view-only environ- ment. As data volumes grow and environments become more complex corporations find it increasingly difficult to leverage their information. ER/Studio provides an easy- Describe™ to-use visual medium to document, understand, and publish information about data assets so that they can be harnessed to support business objectives. Powerful Design, document, and maintain reverse engineering of industry-leading database systems allow a data modeler to enterprise applications written in compare and consolidate common data structures without creating unnecessary Java, C++, and IDL for better code duplication. Using industry standard notations, data modelers can create an infor- quality and shorter time to market. mation hub by importing, analyzing, and repurposing metadata from data sources DT/Studio® such as business intelligence applications, ETL environments, XML documents, An easy-to-use visual medium to and other modeling solutions.
    [Show full text]
  • Table of Contents
    The Kimball Group Reader Relentlessly Practical Tools for Data Warehousing and Business Intelligence Remastered Collection Ralph Kimball and Margy Ross with Bob Becker, Joy Mundy, and Warren Thornthwaite Contents Introduction . xxv 1 The Reader at a Glance . 1 Setting Up for Success . 1 1.1 Resist the Urge to Start Coding . 1 1.2 Set Your Boundaries . 4 Tackling DW/BI Design and Development . 6 1.3 Data Wrangling . 6 1.4 Myth Busters . 9 1.5 Dividing the World . 10 1.6 Essential Steps for the Integrated Enterprise Data Warehouse . 13 1.7 Drill Down to Ask Why . 22 1.8 Slowly Changing Dimensions . 25 1.9 Judge Your BI Tool through Your Dimensions . 28 1.10 Fact Tables . 31 1.11 Exploit Your Fact Tables . 33 2 Before You Dive In . 35 Before Data Warehousing . 35 2.1 History Lesson on Ralph Kimball and Xerox PARC. 36 Historical Perspective . 37 2.2 The Database Market Splits . 37 2.3 Bringing Up Supermarts . 40 Dealing with Demanding Realities . 47 2.4 Brave New Requirements for Data Warehousing . 47 2.5 Coping with the Brave New Requirements. 52 2.6 Stirring Things Up . 57 2.7 Design Constraints and Unavoidable Realities . 60 xiv Contents 2.8 Two Powerful Ideas . 64 2.9 Data Warehouse Dining Experience . 67 2.10 Easier Approaches for Harder Problems . 70 2.11 Expanding Boundaries of the Data Warehouse . 72 3 Project/Program Planning . 75 Professional Responsibilities . 75 3.1 Professional Boundaries . 75 3.2 An Engineer’s View . 78 3.3 Beware the Objection Removers .
    [Show full text]
  • Advantages of Dimensional Data Modeling
    Advantages of Dimensional Data Modeling 2997 Yarmouth Greenway Drive Madison, WI 53711 (608) 278-9964 www.sys-seminar.com Advantages of Dimensional Data Modeling 1 Top Ten Reasons Why Your Data Model Needs a Makeover 1. Ad hoc queries are difficult to construct for end-users or must go through database “gurus.” 2. Even standard reports require considerable effort and detail knowledge of the database. 3. Data is not integrated or is inconsistent across sources. 4. Changes in data values or in data sources cannot be handled gracefully. 5. The structure of the data does not mirror business processes or business rules. 6. The data model limits which BI tools can be used. 7. There is no system for maintaining change history or collecting metadata. 8. Disk space is wasted on redundant values. 9. Users who might benefit from the data don’t use it. 10.Maintenance is tedious and ad hoc. 2 Advantages of Dimensional Data Modeling Part 1 3 Part 1 - Data Model Overview •What is data modeling and why is it important? •Three common data models: de-normalized (SAS data sets) normalized dimensional model •Benefits of the dimensional model 4 What is data modeling? • The generalized logical relationship among tables • Usually reflected in the physical structure of the tables • Not tied to any particular product or DBMS • A critical design consideration 5 Why is data modeling important? •Allows you to optimize performance •Allows you to minimize costs •Facilitates system documentation and maintenance • The dimensional data model is the foundation of a well designed data mart or data warehouse 6 Common data models Three general data models we will review: De-normalized Expected by many SAS procedures Normalized Often used in transaction based systems such as order entry Dimensional Often used in data warehouse systems and systems subject to ad hoc queries.
    [Show full text]
  • Bio-Ontologies Submission Template
    Relational to RDF mapping using D2R for translational research in neuroscience Rudi Verbeeck*1, Tim Schultz2, Laurent Alquier3 and Susie Stephens4 Johnson & Johnson Pharmaceutical Research and Development 1 Turnhoutseweg 30, Beerse, Belgium; 2 Welch & McKean Roads, Spring House, PA, United States; 3 1000 Route 202, Rari- tan, NJ, United States and 4 145 King of Prussia Road, Radnor, PA, United States ABSTRACT Relational database technology has been developed as an Motivation: To support translational research and external approach for managing and integrating data in a highly innovation, we are evaluating the potential of the semantic available, secure and scalable architecture. With this ap- web to integrate data from discovery research through to the proach, all metadata is embedded or implicit in the applica- clinical environment. This paper describes our experiences tion or metadata schema itself, which results in performant in mapping relational databases to RDF for data sets relating queries. However, this architecture makes it difficult to to neuroscience. share data across a large organization where different data- Implementation: We describe how classes were identified base schemata and applications are being used. in the original data sets and mapped to RDF, and how con- Semantic web offers a promising approach to interconnect nections were made to public ontologies. Special attention databases across an organization, since the technology was was paid to the mapping of experimental measures to RDF designed to function within the distributed environment of and how it was impacted by the relational schemata. the web. Resource Description Framework (RDF) and Web Results: Mapping from relational databases to RDF can Ontology Language (OWL) are the two main semantic web benefit from techniques borrowed from dimensional model- standard recommendations.
    [Show full text]
  • Basically Speaking, Inmon Professes the Snowflake Schema While Kimball Relies on the Star Schema
    What is the main difference between Inmon and Kimball? Basically speaking, Inmon professes the Snowflake Schema while Kimball relies on the Star Schema. According to Ralf Kimball… Kimball views data warehousing as a constituency of data marts. Data marts are focused on delivering business objectives for departments in the organization. And the data warehouse is a conformed dimension of the data marts. Hence a unified view of the enterprise can be obtained from the dimension modeling on a local departmental level. He follows Bottom-up approach i.e. first creates individual Data Marts from the existing sources and then Create Data Warehouse. KIMBALL – First Data Marts – Combined way – Data warehouse. According to Bill Inmon… Inmon beliefs in creating a data warehouse on a subject-by-subject area basis. Hence the development of the data warehouse can start with data from their needs arise. Point-of-sale (POS) data can be added later if management decides it is necessary. He follows Top-down approach i.e. first creates Data Warehouse from the existing sources and then create individual Data Marts. INMON – First Data warehouse – Later – Data Marts. The Main difference is: Kimball: follows Dimensional Modeling. Inmon: follows ER Modeling bye Mayee. Kimball: creating data marts first then combining them up to form a data warehouse. Inmon: creating data warehouse then data marts. What is difference between Views and Materialized Views? Views: •• Stores the SQL statement in the database and let you use it as a table. Every time you access the view, the SQL statement executes. •• This is PSEUDO table that is not stored in the database and it is just a query.
    [Show full text]
  • MASTER's THESIS Role of Metadata in the Datawarehousing Environment
    2006:24 MASTER'S THESIS Role of Metadata in the Datawarehousing Environment Kranthi Kumar Parankusham Ravinder Reddy Madupu Luleå University of Technology Master Thesis, Continuation Courses Computer and Systems Science Department of Business Administration and Social Sciences Division of Information Systems Sciences 2006:24 - ISSN: 1653-0187 - ISRN: LTU-PB-EX--06/24--SE Preface This study is performed as the part of the master’s programme in computer and system sciences during 2005-06. It has been very useful and valuable experience and we have learned a lot during the study, not only about the topic at hand but also to manage to the work in the specified time. However, this workload would not have been manageable if we had not received help and support from a number of people who we would like to mention. First of all, we would like to thank our professor Svante Edzen for his help and supervision during the writing of thesis. And also we would like to express our gratitude to all the employees who allocated their valuable time to share their professional experience. On a personal level, Kranthi would like to thank all his family for their help and especially for my friends Kiran, Chenna Reddy, and Deepak Kumar. Ravi would like to give the greatest of thanks to his family for always being there when needed, and constantly taking so extremely good care of me….Also, thanks to all my friends for being close to me. Luleå University of Technology, 31 January 2006 Kranthi Kumar Parankusham Ravinder Reddy Madupu Abstract In order for a well functioning data warehouse to succeed many components must work together.
    [Show full text]
  • Kimball Vs. Inmon
    © 2011 - Andy Hogg Kimball vs. Inmon "Neither are any wars so furious and bloody, or of so long continuance as those occasioned by difference in opinion, especially if it be in things indifferent." (Swift, 1726) In the world of the data warehouse (DW) there are two dominant and opposing dogmas. Zealots of both extoll the virtues of their chosen doctrine with religious fervour, whilst decrying the beliefs of the other. These doctrines have existed for years, and in that time innumerable DWs have been built upon the principles of William Inmon. Likewise, an incalculable number built upon the ideas of Ralph Kimball. Inmon’s Corporate Information Factory (CIF), is a top-down approach. Since the whole DW is built in advance of usage, it requires significant time to deliver value. It therefore requires unwavering sponsorship from a senior figure within the organisation, possessing long-term vision of the DW’s value. Commentators contrast Kimball’s Bus Architecture (BA) as a bottom-up approach, where the data marts (DMs) are built first and unified into a DW at the end of the process. Inmon (n.d.a) ridicules this:- “…in bottom up data warehouse development first one data mart is developed, then another data mart is developed, then one day - presto - you magically and effortlessly wake up and have a data warehouse”. Kimball (2003) dislikes the bottom-up description, “Bottom-up is typically viewed as quick and dirty – focused on the needs of a single department rather than the enterprise”. He maintains the BA is a holistic view of the enterprise, with a final overall structure planned from the outset.
    [Show full text]
  • Round-Trip Database Support Gives ER/Studio Data Architect Users The
    Round-trip database support gives ER/Studio Data Architect users the power to easily reverse-engineer, compare and merge, and visually document data assets residing in diverse locations from data centers to mobile platforms. You’ll leverage Enterprise data as corporate asset more effectively and can be rest assured that compliance is supported for business standards and mandatory regulations—essential factors in an organizational data governance program. Automate and scale your data modeling “We had to use a tool like Visio and do everything by hand before. We’re talking about thousands of tables with subsequent relationships. Now ER/Studio automates the most time consuming tasks.” - Jason Soroko, Business Architect at Entrust Uncover your database inconsistencies “Embarcadero tools detected inconsistencies we didn’t even know existed in our systems, saving us from problems down the road.” - U.S. Bancorp Piper Jaffray The Challenge of Fully Leveraging Enterprise Data This all-too-common scenario forces non-compliance with business standards and mandatory regulations, As organizations grow and data proliferates, ad hoc systems for while preventing business executives from the benefit of storing, analyzing, and utilizing that data start to appear and incorporating all essential data in to their decision-making are generally located near to the business unit that needs it. This process. Data management professionals face three distinct practice results in disparately located databases storing different challenges: versions and formats of the same data and an enterprise that will suffer from multiple views and instances of a single data • Reduce duplication and risk associated with multiple data capture and storage environments point.
    [Show full text]
  • Educational Open Government Data: from Requirements to End Users
    Educational Open Government Data: from requirements to end users Rudolf Eckelberg, Vytor Bezerra Calixto, Marina Hoshiba Pimentel, Marcos Didonet Del Fabro, Marcos Suny´e,Leticia M. Peres, Eduardo Todt, Thiago Alves, Adriana Dragone, and Gabriela Schneider C3SL and NuPE Labs Federal University of Paran´a,Curitiba, Brazil {rce16,vsbc14,marina,marcos.ddf,sunye,lmperes,todt}@inf.ufpr.br, [email protected],[email protected],[email protected] Abstract. The large availability of open government data raises enor- mous opportunities for open big data analytics. However, providing an end-to-end framework able to handle tasks from data extraction and pro- cessing to a web interface involves many challenges. One critical factor is the existence of many players with different knowledge, who need to interact, such as application domain experts, database designers, and web developers. This represents a knowledge gap that is difficult to over- come. In this paper, we present a case study for big data analytics over Brazilian educational data, with more than 1 billion records. We show how we organized the data analytics phase, starting from the analytics requirements, data evolution, development and deployment in a public interface. Keywords: Open Government Data; Analytics API; data evolution 1 Introduction The large availability of Open Governmental Data raises enormous opportunities for open big data analytics. Opportunities are always followed by challenges and when one handle Big Data, difficulties lie in data capture, storage, searching, sharing, analysis, and visualization [2]. Providing useful Open Data would need a complete team, from the domain expert up to the web developer, so often it cannot be handled only by a data scientist for example.
    [Show full text]