You are on page 1of 17

Oasis Team Insurance Case Study

Iago Bacurau1 & Joao Moura2 & Pedro Moreira3

W. P. Carey SCHOOL OF BUSINESS

December 3, 2014

ifrancob@asu.edu
jsantos9@asu.edu
3
psilvamo@asu.edu
2

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Agenda

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

2 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Introduction

Kimballs book Chapter 16;


He discuss homeowner, personal property and automobile insurances;
We focused on automobile insurance;
The policies sold cover natural disasters, theft and accident;

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

3 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

ER Model

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

4 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Business Rules I
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

A customer can have zero or more policies;


A vehicle must be owned by one and only one customer;
Every vehicle must have one and only one model;
A policy must have a customer, a agent and a vehicle;
A customer must have a SSN, address and name;
A customer must have a phone;
An agent can have zero or more policies;
A customer can have zero or more cars;
An agent must have name and address;
A policy can have one or more coverage;
Customers can not share the same SSN;
A model must have a brand;
An address must have a city;
A city must have a state;
A state must have a country;

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

5 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Business Rules II
Customers can not share the same SSN;

Figure: SQL Test of the business rule


Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

6 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Business Rules III


A customer must have a phone

Figure: SQL Test of the business rule


Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

7 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Database Population I
Some fake data were generated by Python and PHP based scripts. To generate
the database population based on SQL scripts we used the website Mockaroo.

Figure: PHP script for Policy Coverage

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

8 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Database Population II

Figure: Python script for Policy


Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

9 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Database Population III

Figure: Mockaroo website


http://www.mockaroo.com/
Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

10 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Star Schema I
Our business process is about the policies sales.
We will analyze the policies sales by whom sold and where the policies were
sold.

Figure: Star Schema


Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

11 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Star Schema II
The purpose of the Period Snapshot dimensional model is to evaluate both
amount and total of all policies sold by each agent per month.
The grain is one row per agent per month.

Figure: Period Snapshot Star Schema

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

12 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

ETL Process I
For the first star schema the ETL process was done using a PHP framework
called Laravel.

Figure: ETL PHP code


Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

13 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

ETL Process II
For the Periodic Snapshot the ETL process was done via SQL script.

Figure: Resultant table of ETL Process

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

14 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

ETL Process III

Figure: Resultant table of ETL Process

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

15 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Remarks

Initial ER model required modifications;


ETL process is the most complex step;
There are many different ways to generate fake data;

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

16 / 17

Introduction

ER Model

Business Rules

Database Population

Star Schemas

ETL Process

Remarks

Questions
Comments

Oasis Team Insurance Case Study

Iago Bacurau & Joao Moura & Pedro Moreira

W. P. Carey School of Business

17 / 17

You might also like