Análisis de Datos
Análisis de Datos
DATA B A S E DE S IG
N
Lis Sulmont
Curriculum
Manager
Our motivating
question:
How should we organize and manage data?
Schemas: How should my data be logically organized?
Access control: Should all users of the data have the same level of access
DBMS: How do I pick between all the SQL and noSQL options?
and more!
DATABASE DESIGN
Our motivating
question:
How should we organize and manage data?
Schemas: How should my data be logically organized?
Access control: Should all users of the data have the same level of access
DBMS: How do I pick between all the SQL and noSQL options?
and more!
DATABASE DESIGN
Approaches to processing data
OLTP OLAP
Online Transaction Online Analytical
Processing Processing
DATABASE DESIGN
Some concrete examples
OLTP tasks OLAP tasks
Find the price of a book Calculate books with best proht
margin
Update latest customer
Find most loyal customers
transaction Keep track of
Decide employee of the
employee hours
month
DATABASE DESIGN
OLAP vs. OLTP
OLTP OLAP
DATABASE DESIGN
Working together
DATABASE DESIGN
Takeaways
Step back and hgure out business
requirements
else?
DATABASE DESIGN
Let's practice!
DATA B A S E DE S IG
N
Storing data
DATA B A S E DE S IG
N
Lis Sulmont
Curriculum
Manager
Structuring data
1. Structured data 2. Unstructured data
1https:/ commons.wikimedia.org/wiki/File:Flower_jtca001.jpg 2
https:/ commons.wikimedia.org/wiki/File:Languages_xml.png 3
DATABASE DESIGN
Storing data beyond traditional databases
Traditional databases
For storing real-time relational structured data ? OLTP
Data warehouses
For analyzing archived structured data ? OLAP
Data lakes
For storing data of all structures = hexibility and
scalability
DATABASE DESIGN
Data warehouses
Optimized for analytics - OLAP
Organized for reading & aggregating
data
Usually read-only
Data marts
Subset of data
warehouses Dedicated to
write
DATABASE DESIGN
ET
L
EL
T
DATABASE DESIGN
Let's practice!
DATA B A S E DE S IG
N
Database design
DATA B A S E DE S IG
N
Lis Sulmont
Curriculum
Manager
What is database design?
Determines how data is logically stored
How is data going to be read and updated?
DATABASE DESIGN
Data modeling
Process of creating a data model for the data to be stored
Tools: database models and schemas, e.g., relational model and star schema
1 https:/ en.wikipedia.org/wiki/Data_model
DATABASE DESIGN
Conceptual - ER diagram Logical - schema
DATABASE DESIGN
Other database design options
Determining tables
DATABASE DESIGN
Beyond the relational model
Dimensional modeling
Adaptation of the relational model for data warehouse design
DATABASE DESIGN
Elements of dimensional modeling
Fact tables
DATABASE DESIGN
Let's practice!
DATA B A S E DE S IG
N