You are on page 1of 5

BUILD A DATA WAREHOUSE WITH SQLITE

Achmad Adyatma Ardi1


Programmer, Data Scientist, Engineer
*Corresponding author : achmad541997@gmail.com
Saturday, June 4, 2022

Abstract

Data science is a discipline where we try to answer questions that is needed instead of
using a mere assumption, we use data and logical thinking to answer that question
with a belief. In a business purposes, even though the value of uncertainty is always
there, it would be wise to make decisions based on the data you have. Data can be
your best friend in making important decisions. On this occasion, I will try to analyze
the data with the aim of answering important business-related questions using the
Python programming language with Pandas and Matplotlib libraries. Hope you enjoy
it!

Keyword : data science, python programming, sales analysis, python pandas, python
matplotlib, answer questions

Table of contents :
Ch. 1 Introduction to Data Warehousing........................1
…1
1
2
2
Ch. 2 SQL Lite...............................................................2

Additional attachment :
Attachment. 1 Example of a database...................3
Attachment. 2.......................................................3
Attachment. 3.......................................................3
Attachment. 4.......................................................3
A data warehouse is mainly a data
management system that’s designed to
Ch. 1 Introduction to Data enable and support business
Warehousing intelligence (BI) activities, particularly
analytics. Data warehouses are alleged

1 | Achmad Adyatma Ardi


to perform queries, cleaning, 2. Operational Data Store (ODS)
manipulating, transforming and Operational Data Store, which
analyzing the data and they also is also called ODS, are nothing
contain large amounts of historical but data store required when
data. neither data warehouse nor
OLTP systems support
I. 1 Usage organizations reporting needs. In
Data warehouse allows users to ODS, data warehouse is
access critical data from the number of refreshed in real time. Hence, it
sources in a single place. Therefore, it is widely preferred for routine
saves user’s time of retrieving data activities like storing records of
from multiple sources. Data warehouse the employees
stores a large amount of historical 3. Data Mart
data. This helps users to analyze A data mart is a subset of the
different time periods and trends to data warehouse. It specially
make future predictions. Below are 7 designed for a particular line of
key benefits of data warehousing : business, such as sales, finance,
1. Saves time sales or finance. In an
2. Improves data quality independent data mart, data can
3. Improves business intelligence collect directly from sources.
4. Leads to data consistency
5. Enhances return on investment I. 3 Warehousing Processes
(ROI) Data warehouse generalize and
6. Stores historical data consolidate data in multi –
7. Increases data security dimensional spaces. The construction
of data warehouses involves data
I. 2 Types of Data Warehouse cleaning, data integration, and data
(DWH) transformation. The data can be
Three main types of data viewed as an important step for data
warehouses (DWH) are : mining. Data warehouse provides
1. Enterprise Data Warehouse architectures and tools for business
(EDW) executives to systematically organize,
Enterprise Data Warehouse understand and use their data to make
(EDW) is a centralize strategic decisions. The information
warehouse. It provides decision gathered in a warehouse can be used in
support service across the any of the following domains (Figure
enterprise. It offers a unified 1):
approach for organizing and 1. Tuning production strategies
representing data. It also provide 2. Customer analysis / customer
the ability to classify data behaviour
according to the subject and give 3. Operation analysis
access according to those
divisions

2 | Achmad Adyatma Ardi


the information for rapid
analytical consumption using a
variety of data integration
approaches such as ETL (extract,
transform, load) and ETL as well
Figure 1 Data Warehouse as real – time data replication,
bulk – load processing, data
There are four major processes that transformation, and data quality
contribute to a data warehouse : and enrichment services
1. Extract and load the data 3. Metadata
4. Data warehouse access tools
2. Cleaning and transforming the
data https://www.sap.com/
3. Backup and archive the data insights/what-is-a-data-
4. Managing queries and directing warehouse.html#:~:text=A
them to the appropriate sources %20typical%20data%20warehouse
%20has,analyze%20data%20on
I. 4 Components of Data %20the%20fly.
Warehousing
A typical data warehouse has four
main components : (1) Central
database, (2) ETL (extract, transform,
load) tools, (3) metadata, (4) and
access tools. All of these components
are engineered for speed so that you Figure 2 The components of a data warehouse
can get results quickly and analyze
data on the fly.
1. Central database
A database serves as the I. 5 Data Warehousing Tools
foundation of your data
warehouse. Traditionally these Ch. 2 SQL Lite
have been standard relational
database running on premise or
in the cloud. But because of big
data, the need for true, real – In machine learning (and in
time performance, and a drastic
reduction in the cost of RAM, in mathematics) there are often three
– memory databases are rapidly values that interests us :
gaining in popularity. 1. Mean – the average value
2. Data integration (ETL tools) 2. Median – the mid point value
Data is pulled from source 3. Mode – the most common value
systems and modified to align

3 | Achmad Adyatma Ardi


References

https://pynative.com/python-mysql-
database-connection/

https://articles.cyzerg.com/warehouse-
processes-how-to-optimize-
them#:~:text=11%20MIN
%20READ-,The%20six
%20fundamental%20warehouse
%20processes%20comprise
%20receiving%2C%20putaway%2C
%20storage%2C,a%20higher
%20perfect%20order%20rate.

4 | Achmad Adyatma Ardi


Attachment. 1 Example of a database

Carname Color Age Speed AutoPass


BMW red 5 99 Y
Volvo black 7 86 Y
VW gray 8 87 N
VW white 7 88 Y
Ford white 2 111 Y
VW white 17 86 Y
Tesla red 2 103 Y
BMW black 9 87 Y
Volvo gray 4 94 N
Ford white 11 78 N
Toyota gray 12 77 N
VW white 9 85 N
Toyota blue 6 86 Y

Attachment. 2
Attachment. 3
Attachment. 4

5 | Achmad Adyatma Ardi

You might also like