04 Introduction To SAP HANA Chapter 3 Data Modeling Slides en
04 Introduction To SAP HANA Chapter 3 Data Modeling Slides en
Focus: This module provides an introduction on the topic data modeling using SAP HANA.
© ©©2016
© 2016All rights
. All reserved.
rights reserved. 1
SAP HANA Data Modeling
AGENDA
Semantic
Star Schema
DWH Model
Top-down Extended Star
Multidimensional Storage structure
Bottom-up Schema
ERM Index mechanism
Combined Galaxy Schema
Dimensional Fact Database tuning
approach Snowflake
Modeling
Schema
ADAPT
Views
Tables
ETL-based Replication
Data
Provisioning SAP Smart Data Integration
Source: SAP SE (2016), SAP Product Road Map – SAP HANA, Road Map Revision: 2016.07.20, Retrieved from http://service.sap.com
http://hostname:port/sap/hana/ide/
Database
schema
Physical
tables
Package
Table definition
Calculation view
definition
• Calculation Views
Create information • Type CUBE
models
• Type DIMENSION
Table name
Database schema
Table type
Field length
Table fields
Data type
Numeric types TINYINT, SMALLINT, INTEGER, BIGINT, SMALLDECIMAL, DECIMAL, REAL, DOUBLE
Source: SAP SE (2016), SAP HANA SQL and System Views Reference. SAP HANA Platform SPS 12. Document Version: 1.0 - 2016-05-11, p. 30
Data operation
Calculation Views – type DIMENSION
select
Calculation View
Calculation Views – type CUBE join
union
projection
Database tables
aggregation
rank
Union
Calculation view (Result set)
3. If a description mapping is
performed, the text is shown as
label for field Country (and not as
separate text field)
Calculated columns
• Various functions available (String, mathematical, data….)
• Use of existing attributes and measures of the output structure
Restricted columns
• Restrict columns using attributes from the output structure
• Used e.g. to transform an account model into a key figure model
Data Preview
Available for tables and views
Can be used to confirm the correctness of the data model and the data loaded
General recommendation: Reduce data transfer between different layers (tables, views, end user
tools), e.g. through filtering, aggregation on the lowest possible level.
SAP SE (2016): SAP Product Road Map – SAP HANA, Road Map Revision: 2016.07.20, Retrieved from
http://service.sap.com
SAP SE (2016): SAP HANA Master Guide. SAP HANA Platform SPS 12. Document Version: 1.0 - 2016-05-11.
SAP SE (2016): SAP HANA SQL and System Views Reference. SAP HANA Platform SPS 12. Document Version: 1.0 - 2016-
05-11.
SAP AG (2012): SAP HANA Database – Development Guide – How to use SQL and SQLScript for Data Modeling, SAP HANA
Appliance Software SPS 04, document version 2.0.