SlideShare a Scribd company logo
1 of 40
Download to read offline
Data Warehouse
Transportation
Outline
1. Requirement
2. 4 Step Design
3. New Techniques
4. Improvement
Techniques
1. Fact tables at different levels of granularity
2. Combining correlated role-playing dimensions
3. Country-specific date dimensions
4. Dates and times in multiple time zones
Bottom-up
Airline’s Bus matrix
Business Process
Common Dimensions
Example airline database
STEP DESIGN4
Step 0: Requirement
The marketing department wants to analyze:
- what flights the company’s frequent flyers take
- what fare basis they pay, how often they upgrade
- how they earn and redeem their frequent flyer miles
- whether they respond to special fare promotions
- what proportion of these frequent flyers have gold, platinum, aluminum,
or titanium status
Step 1: Identify Business Process
*Note :
Reservation or ticketing activity
data that didn’t result in a
passenger boarding a plane is
not considered
THA JAP USA
TG 001 TG 001
Leg Leg
Segment
Step 2: Granularity
THA JAP USA
TG 001 TG 002
Segment Segment
Trip
Leg Leg
Step 2: Granularity
THA JAP USA
TG 001 TG 002
Trip
TG 004 TG 003
Itinerary
Origin Destination
Step 2: Granularity
● Segment level : each flight (same flight No.)
● 1 row in the fact table for each boarding pass collected
What can be determined?
● passenger revenue and mileage credit
Focus on..
● Marketing and Revenue groups
Step 2: Granularity
Multiple Fact Table Granularities
Level Use cases Note
Leg (atomic)
take off to landing
- Capacity planning analysis
- Flight scheduling analysis
number of seats, flight
duration and the number
of minutes late at
departure and arrival,
identify on-time arrivals
Segment
single flight number
- passenger revenue and mileage credit
- marketing and revenue groups
lowest level of data with
meaningful revenue
metrics
Trip
One-way trip
May change flight (transfer)
- Get an accurate picture of customer
demand
- Sales and marketing
Itinerary
Whole ticket/reservation
number
- Want to have whole idea of the travel
Step 3:
Identify
Dimensions...
Dimensions Technique
1. ScheduleDepartureTime
2. ActualDepartureTime
Multi-Role Playing
(DateDim)
1. ScheduleDepartDate
2. ActualDepartDate
Multi-Role Playing
(TimeDim)
1. SegmentOriginAirportDim
2. SegmentDestinationAirportDim
Multi-Role Playing
(AirportDim)
1. ClassPurchase
2. ClassFlown
3. ClassChange
Combine to
ServiceClassDim
PassengerDim -
AircraftDim -
FareBasisDim -
PromotionDim -
BookingChannelDim -
Degenerated Dimension
ConfirmationNumberID
TicketNumberID
FlightNumberID
SegmentSequenceNumberID
Linking Segments into Trips
Segment can’t answer one of the most important questions about your
frequent flyers: “Where are actually they going?”
Impossible to know the trip starting and end points
SOLUTION : introduce two more airport role-playing dimensions
→ 1. TripOriginAirport 2. TripDestinationAirport
Combining correlated role-playing dimensions
1. Class of service
2. Origin and Destination
1. Data volumes are extremely small
2. Attributes depend on combined roles for context and meaning
When to combine
Class Of Service Dim
Business requirement: filter report based on whether an upgrade or
downgrade occurred
Class Purchased
Key
- Need to have an upgrade indicator
Row counts are so small
Class Flown
Key
Class Change
Key
( Similar as JUNK DIM )
Combine into
single dimension
Class Of Service Dim
Origin and Destination Airport
Data volumes are more
significant
→ Separate tables
But
Business users may need
additional attributes that
depend on the combination of
→ Origin and Destination Table
Option
add another dimension to the fact table for the airport-pair route
descriptors
1
Option
Combine the origin and destination airport attributes, plus the
supplemental city-pair route attributes, into a single dimension
PairAir
portKey
Dpt.
Airport
Name
Dpt. Airport
City
... Arr.
Airport
Name
Arr.
Airport
City
... Directi
onal
Route
Name
Route
Distance
in Miles
Route
Distance
Band
Dom-Intl
Ind
Transocean
Ind
...
1 BOS Boston ... JFK New york ... BOS-J
FK
191 Less than
200 miles
Domestic Non-Oceanic ...
2 JFK New york ... BOS Boston ... JFK-B
OS
191 Less than
200 miles
Domestic Non-Oceanic ...
3 BOS Boston ... NRT Tokyo ... BOS-N
RT
6737 More than
6000
miles
Internatio
nal
Transatlantic ...
4 NRT Tokyo ... BOS Boston ... NRT-B
OS
6737 More than
6000
miles
Internatio
nal
Transatlantic ...
2
Normal Date Dimension
Consider business are across 3 countries
with different Calendars
● Need 3 extra duplicate attribute to
represents each specific Holiday.
● Redundant and become increasingly large
as number of Countries increases
Country-specific date dimensions
………………
What is the problems
● Different countries and multinational with different calendars
○ require sets of independent attribute of days/months/year in primary
dimension.
● Holidays occurs differently according to various calendars on different
countries or part of the world.
Country-specific date dimensions
JOIN to the main calendar dimension as an outrigger or directly to the fact table
Country-specific calendar
“outrigger”
Dates and times in multiple time zones
Multiple time zones = Multiple countries
1) Capture the date and time relative to local time
2) Express the time period relative to a standard time (GMT, UTC)
3) Separate date dimension and time-of-day dimension corresponding to
the local and equivalized dates
Localization Recap
1. All of database-centric technique fall under the general theme
of “localization”
2. DW/BI system built to serve business users in many countries
need to designed for these localization issues
3. Challenges: How airport control towers and airplane pilots
around the world deal with language incompatibilities when
communicating critical messages → Use one language, unit
measure ex. measure in feet
Step 3:
Identify
Dimensions...
Dimensions Technique
DateDim
1. ScheduleDepartureTime 2. ActualDepartureTime
3. GMTScheduledDepTime 4. GMTActualDepartureTime
Multi-Role Playing
(DateDim)
TimeDim
1. ScheduleDepartDate 2. ActualDepartDate
3. GMTScheduledDepDate 4. GMTActualDepartureDate
Multi-Role Playing
(TimeDim)
AirportDim
1. TripOriginAirport
2. TripDestinationAirport
Multi-Role Playing
(AirportDim)
SegmentAirportPairDim
1. SegmentOriginAirportDim
2. SegmentDestinationAirportDim
Combine to
AirportPairDim
ServiceClassDim
1. ClassPurchase
2. ClassFlown
3. ClassChange
Combine to
ServiceClassDim
PassengerDim
PassengerProfileDim
Mini Dim
CountrySpecificDateOutrigger Outrigger
AircraftDim -
FareBasisDim -
PromotionDim -
Degenerated Dimension
ConfirmationNumberID
TicketNumberID
FlightNumberID
SegmentSequenceNumberID
BookingChannelDim -
Step 4: Identify Measures
Step 5: Fill in Attributes
Date Dim (multi-role)
Passenger Dim
Passenger Profile Dim
Airport Dim (multi-role)
Aircraft Dim
Fare Basis Dim
Booking Channel Dim
Promotion Dim
Class of Service Dim
Segment Airport Pair Dim
Time Dim (multi-role)
Passenger mini-Dimension (SCD4)
Class Dimension (Combined)
City-Pair Route Dimension
Date Dimension
…
Country-Specific Date OutriggerSmartkey
Promotion Dimension
…
Reference
● The Data Warehouse Toolkit - Ralph Kimball & Margy Ross
● Oracle Airline Data Model
● Sample airline DB (all tables with columns)
Members
1. Kavin Sermsaksakoon
2. Teepob Harutaipree
3. Suppakit Krasettrakarn
4. Nattapol Puttasuntithum

More Related Content

Similar to Datawarehouse Kimball Text Ch12 Transportation

software testing micro projectnnnn(1)22.pptx
software testing micro projectnnnn(1)22.pptxsoftware testing micro projectnnnn(1)22.pptx
software testing micro projectnnnn(1)22.pptx40NehaPagariya
 
Air Travel Analytics in SAS
Air Travel Analytics in SASAir Travel Analytics in SAS
Air Travel Analytics in SASRohan Nanda
 
Strategic AIrlines Management 5. unit cost
Strategic AIrlines Management 5. unit costStrategic AIrlines Management 5. unit cost
Strategic AIrlines Management 5. unit costNarudh Cheramakara
 
Optimization : Back to the Core
Optimization : Back to the CoreOptimization : Back to the Core
Optimization : Back to the CoreDimitris Bountolos
 
Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)ISAH BABAYO
 
Airline Reservation System - Software Engineering
Airline Reservation System - Software EngineeringAirline Reservation System - Software Engineering
Airline Reservation System - Software EngineeringDrishti Bhalla
 
Standoutfromthe crowds
Standoutfromthe crowdsStandoutfromthe crowds
Standoutfromthe crowdsMohammed Awad
 
Flight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docxFlight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docxAKHIL969626
 
Global Distribution Systems - Part 2 of 5: Past, present and yet to come: GDS...
Global Distribution Systems - Part 2 of 5: Past, present and yet to come: GDS...Global Distribution Systems - Part 2 of 5: Past, present and yet to come: GDS...
Global Distribution Systems - Part 2 of 5: Past, present and yet to come: GDS...Edutour
 
Hw1 SE sol
Hw1 SE solHw1 SE sol
Hw1 SE solwahab13
 
Using SQL-MapReduce for Advanced Analytics
Using SQL-MapReduce for Advanced AnalyticsUsing SQL-MapReduce for Advanced Analytics
Using SQL-MapReduce for Advanced AnalyticsTeradata Aster
 
Notes how to work with variables, constants and do calculations
Notes how to work with variables, constants and do calculationsNotes how to work with variables, constants and do calculations
Notes how to work with variables, constants and do calculationsWilliam Olivier
 
Airport flight schedule System UML diagrams
Airport flight schedule System UML diagramsAirport flight schedule System UML diagrams
Airport flight schedule System UML diagramsuow
 
Detailed Project Report.pptx
Detailed Project Report.pptxDetailed Project Report.pptx
Detailed Project Report.pptxZafarmwaris
 
E-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATIONE-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATIONNandana Priyanka Eluri
 

Similar to Datawarehouse Kimball Text Ch12 Transportation (20)

software testing micro projectnnnn(1)22.pptx
software testing micro projectnnnn(1)22.pptxsoftware testing micro projectnnnn(1)22.pptx
software testing micro projectnnnn(1)22.pptx
 
Sergio Martins - OPERATIONS AND PASSENGERS WORKSHOP - PANEL 2
Sergio Martins - OPERATIONS AND PASSENGERS WORKSHOP - PANEL 2Sergio Martins - OPERATIONS AND PASSENGERS WORKSHOP - PANEL 2
Sergio Martins - OPERATIONS AND PASSENGERS WORKSHOP - PANEL 2
 
Air Travel Analytics in SAS
Air Travel Analytics in SASAir Travel Analytics in SAS
Air Travel Analytics in SAS
 
Strategic AIrlines Management 5. unit cost
Strategic AIrlines Management 5. unit costStrategic AIrlines Management 5. unit cost
Strategic AIrlines Management 5. unit cost
 
Optimization : Back to the Core
Optimization : Back to the CoreOptimization : Back to the Core
Optimization : Back to the Core
 
Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)
 
Airline Reservation System - Software Engineering
Airline Reservation System - Software EngineeringAirline Reservation System - Software Engineering
Airline Reservation System - Software Engineering
 
Detailed_Design
Detailed_DesignDetailed_Design
Detailed_Design
 
Profit maximization
Profit maximizationProfit maximization
Profit maximization
 
Overview of airline booking process
Overview of airline booking processOverview of airline booking process
Overview of airline booking process
 
Standoutfromthe crowds
Standoutfromthe crowdsStandoutfromthe crowds
Standoutfromthe crowds
 
Flight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docxFlight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docx
 
chris guidice RESUME Ver2
chris guidice RESUME Ver2chris guidice RESUME Ver2
chris guidice RESUME Ver2
 
Global Distribution Systems - Part 2 of 5: Past, present and yet to come: GDS...
Global Distribution Systems - Part 2 of 5: Past, present and yet to come: GDS...Global Distribution Systems - Part 2 of 5: Past, present and yet to come: GDS...
Global Distribution Systems - Part 2 of 5: Past, present and yet to come: GDS...
 
Hw1 SE sol
Hw1 SE solHw1 SE sol
Hw1 SE sol
 
Using SQL-MapReduce for Advanced Analytics
Using SQL-MapReduce for Advanced AnalyticsUsing SQL-MapReduce for Advanced Analytics
Using SQL-MapReduce for Advanced Analytics
 
Notes how to work with variables, constants and do calculations
Notes how to work with variables, constants and do calculationsNotes how to work with variables, constants and do calculations
Notes how to work with variables, constants and do calculations
 
Airport flight schedule System UML diagrams
Airport flight schedule System UML diagramsAirport flight schedule System UML diagrams
Airport flight schedule System UML diagrams
 
Detailed Project Report.pptx
Detailed Project Report.pptxDetailed Project Report.pptx
Detailed Project Report.pptx
 
E-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATIONE-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATION
 

Recently uploaded

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Recently uploaded (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 

Datawarehouse Kimball Text Ch12 Transportation

  • 2. Outline 1. Requirement 2. 4 Step Design 3. New Techniques 4. Improvement
  • 3. Techniques 1. Fact tables at different levels of granularity 2. Combining correlated role-playing dimensions 3. Country-specific date dimensions 4. Dates and times in multiple time zones
  • 5. Airline’s Bus matrix Business Process Common Dimensions
  • 7.
  • 9. Step 0: Requirement The marketing department wants to analyze: - what flights the company’s frequent flyers take - what fare basis they pay, how often they upgrade - how they earn and redeem their frequent flyer miles - whether they respond to special fare promotions - what proportion of these frequent flyers have gold, platinum, aluminum, or titanium status
  • 10. Step 1: Identify Business Process *Note : Reservation or ticketing activity data that didn’t result in a passenger boarding a plane is not considered
  • 11. THA JAP USA TG 001 TG 001 Leg Leg Segment Step 2: Granularity
  • 12. THA JAP USA TG 001 TG 002 Segment Segment Trip Leg Leg Step 2: Granularity
  • 13. THA JAP USA TG 001 TG 002 Trip TG 004 TG 003 Itinerary Origin Destination Step 2: Granularity
  • 14. ● Segment level : each flight (same flight No.) ● 1 row in the fact table for each boarding pass collected What can be determined? ● passenger revenue and mileage credit Focus on.. ● Marketing and Revenue groups Step 2: Granularity
  • 15. Multiple Fact Table Granularities Level Use cases Note Leg (atomic) take off to landing - Capacity planning analysis - Flight scheduling analysis number of seats, flight duration and the number of minutes late at departure and arrival, identify on-time arrivals Segment single flight number - passenger revenue and mileage credit - marketing and revenue groups lowest level of data with meaningful revenue metrics Trip One-way trip May change flight (transfer) - Get an accurate picture of customer demand - Sales and marketing Itinerary Whole ticket/reservation number - Want to have whole idea of the travel
  • 16. Step 3: Identify Dimensions... Dimensions Technique 1. ScheduleDepartureTime 2. ActualDepartureTime Multi-Role Playing (DateDim) 1. ScheduleDepartDate 2. ActualDepartDate Multi-Role Playing (TimeDim) 1. SegmentOriginAirportDim 2. SegmentDestinationAirportDim Multi-Role Playing (AirportDim) 1. ClassPurchase 2. ClassFlown 3. ClassChange Combine to ServiceClassDim PassengerDim - AircraftDim - FareBasisDim - PromotionDim - BookingChannelDim - Degenerated Dimension ConfirmationNumberID TicketNumberID FlightNumberID SegmentSequenceNumberID
  • 17. Linking Segments into Trips Segment can’t answer one of the most important questions about your frequent flyers: “Where are actually they going?” Impossible to know the trip starting and end points SOLUTION : introduce two more airport role-playing dimensions → 1. TripOriginAirport 2. TripDestinationAirport
  • 18. Combining correlated role-playing dimensions 1. Class of service 2. Origin and Destination 1. Data volumes are extremely small 2. Attributes depend on combined roles for context and meaning When to combine
  • 19. Class Of Service Dim Business requirement: filter report based on whether an upgrade or downgrade occurred Class Purchased Key - Need to have an upgrade indicator Row counts are so small Class Flown Key Class Change Key
  • 20. ( Similar as JUNK DIM ) Combine into single dimension Class Of Service Dim
  • 21. Origin and Destination Airport Data volumes are more significant → Separate tables But Business users may need additional attributes that depend on the combination of → Origin and Destination Table
  • 22. Option add another dimension to the fact table for the airport-pair route descriptors 1
  • 23. Option Combine the origin and destination airport attributes, plus the supplemental city-pair route attributes, into a single dimension PairAir portKey Dpt. Airport Name Dpt. Airport City ... Arr. Airport Name Arr. Airport City ... Directi onal Route Name Route Distance in Miles Route Distance Band Dom-Intl Ind Transocean Ind ... 1 BOS Boston ... JFK New york ... BOS-J FK 191 Less than 200 miles Domestic Non-Oceanic ... 2 JFK New york ... BOS Boston ... JFK-B OS 191 Less than 200 miles Domestic Non-Oceanic ... 3 BOS Boston ... NRT Tokyo ... BOS-N RT 6737 More than 6000 miles Internatio nal Transatlantic ... 4 NRT Tokyo ... BOS Boston ... NRT-B OS 6737 More than 6000 miles Internatio nal Transatlantic ... 2
  • 24. Normal Date Dimension Consider business are across 3 countries with different Calendars ● Need 3 extra duplicate attribute to represents each specific Holiday. ● Redundant and become increasingly large as number of Countries increases Country-specific date dimensions ………………
  • 25. What is the problems ● Different countries and multinational with different calendars ○ require sets of independent attribute of days/months/year in primary dimension. ● Holidays occurs differently according to various calendars on different countries or part of the world.
  • 26. Country-specific date dimensions JOIN to the main calendar dimension as an outrigger or directly to the fact table Country-specific calendar “outrigger”
  • 27. Dates and times in multiple time zones Multiple time zones = Multiple countries 1) Capture the date and time relative to local time 2) Express the time period relative to a standard time (GMT, UTC) 3) Separate date dimension and time-of-day dimension corresponding to the local and equivalized dates
  • 28.
  • 29. Localization Recap 1. All of database-centric technique fall under the general theme of “localization” 2. DW/BI system built to serve business users in many countries need to designed for these localization issues 3. Challenges: How airport control towers and airplane pilots around the world deal with language incompatibilities when communicating critical messages → Use one language, unit measure ex. measure in feet
  • 30. Step 3: Identify Dimensions... Dimensions Technique DateDim 1. ScheduleDepartureTime 2. ActualDepartureTime 3. GMTScheduledDepTime 4. GMTActualDepartureTime Multi-Role Playing (DateDim) TimeDim 1. ScheduleDepartDate 2. ActualDepartDate 3. GMTScheduledDepDate 4. GMTActualDepartureDate Multi-Role Playing (TimeDim) AirportDim 1. TripOriginAirport 2. TripDestinationAirport Multi-Role Playing (AirportDim) SegmentAirportPairDim 1. SegmentOriginAirportDim 2. SegmentDestinationAirportDim Combine to AirportPairDim ServiceClassDim 1. ClassPurchase 2. ClassFlown 3. ClassChange Combine to ServiceClassDim PassengerDim PassengerProfileDim Mini Dim CountrySpecificDateOutrigger Outrigger AircraftDim - FareBasisDim - PromotionDim - Degenerated Dimension ConfirmationNumberID TicketNumberID FlightNumberID SegmentSequenceNumberID BookingChannelDim -
  • 31. Step 4: Identify Measures
  • 32.
  • 33. Step 5: Fill in Attributes Date Dim (multi-role) Passenger Dim Passenger Profile Dim Airport Dim (multi-role) Aircraft Dim Fare Basis Dim Booking Channel Dim Promotion Dim Class of Service Dim Segment Airport Pair Dim Time Dim (multi-role)
  • 39. Reference ● The Data Warehouse Toolkit - Ralph Kimball & Margy Ross ● Oracle Airline Data Model ● Sample airline DB (all tables with columns)
  • 40. Members 1. Kavin Sermsaksakoon 2. Teepob Harutaipree 3. Suppakit Krasettrakarn 4. Nattapol Puttasuntithum