SlideShare a Scribd company logo
Introduction to OLTP and OLAP
Answer a Quick Question
According to your understanding,
what are some of the queries that OLTP systems can process?
 Search for a particular customer’s record.
 Retrieve the product description and unit price of a particular product.
 Filter all products with a unit price equal to or above 2500.
 Filter all products supplied by a particular supplier.
 Search and display the record of a particular supplier.
Queries that an OLTP System can Process
Examples of OLTP transactions include:
 Online banking
 Purchasing a book online
 Booking an airline ticket
 Sending a text message
 Order entry
 Telemarketers entering telephone survey results
 Call centre staff viewing and updating customers’
details
Advantages and Challenges of an OLTP System
Advantages of an OLTP System
 Simplicity – It is designed typically for use by clerks, cashiers, clients, etc.
 Efficiency – It allows its users to read, write and delete data quickly.
 Fast query processing – It responds to user actions immediately and also
supports transaction processing on demand.
Challenges of an OLTP System
 Security – An OLTP system requires concurrency control (locking) and
recovery mechanisms (logging).
 OLTP system data content not suitable for decision making
 A typical OLTP system manages the current data within an
enterprise/organization. This current data is far too detailed to be easily used for
decision making.
 The super market store is deciding on introducing a new product. The key
questions they are debating are: “Which product should they introduce?” and
“Should it be specific to a few customer segments?”
 The super market store is looking at offering some discount on their year-end
sale. The questions here are: “How much discount should they offer?” and
“Should it be different discounts for different customer segments?”
 In other words:
 OLTP transactions are usually very specific in the task that they perform,
and they usually involve a single record or a small selection of records.
 For example, an online banking customer might send money from his
account to his wife’s account. In this case, the transaction only involves
two accounts – his account and his wife’s. It does not involve the other
bank customers.
The Queries that OLTP Cannot Answer
OLAP
 OLAP differs from traditional databases in the way data is
conceptualized and stored.
 In OLAP data is held in the dimensional form rather than the relational
form.
 OLAP’s life blood is multi-dimensional data.
 OLAP tools are based on the multi-dimensional data model. The multi-
dimensional data model views data in the form of a data cube.
 Example:
 A Bank manager performing a query across all customer
accounts, so that he can see which suburbs had the most
active online banking customers during a certain period.
Advantages of an OLAP System
 Multi-dimensional data representation.
 Consistency of information.
 “What if ” analysis.
 Provides a single platform for all information and business needs –
planning, budgeting, forecasting, reporting and analysis.
 Fast and interactive ad hoc exploration.
So OLAP is…
 So a an OLAP tool could be used to summarize
sales data by product, region, and time period,
for example.
 However, OLAP cubes are not restricted to
three dimensions. An OLAP cube could have
any number of dimensions. In these cases,
such a cube is sometimes referred to as
a hypercube.
Examples of OLAP Tools
 Here’s a list of some of the more popular OLAP
tools available:
 Dundas BI
 Sisense
 IBM Cognos Analytics
 InetSoft
 SAP Business Intelligence
 Halo
OLTP OLAP
Online Transaction Processing Online Analytical Processing
Focus Data in Data out
Source of data Operational/Transactional Data Data extracted from various
operational data sources,
transformed and loaded into the
data warehouse
Purpose of data Manage (control and execute) basic
business tasks
Assists in planning, budgeting,
forecasting and decision making
Data contents Current data. Far too detailed – not
suitable for decision making
Historical data. Has support for
summarization and aggregation.
Stores and manages data at various
levels of granularity, thereby
suitable for decision making
Inserts and updates Very frequent updates and inserts Periodic updates to refresh the
data warehouse
Queries Simple queries, often returning fewer
records
Often complex queries involving
aggregations
Processing speed Usually returns fast Queries usually take a long time
(several hours) to execute and
return
Access Field level access Typically aggregated access to
data of business interest
OLTP OLAP
Online Transaction Processing Online Analytical Processing
Database Design Typically normalized tables. OLTP
system adopts ER (Entity Relationship)
model
Typically de-normalized tables; uses
star or snowflake schema
Operations Read/Write Mostly read
Backup and Recovery Regular backups of operational data are
mandatory. Requires concurrency control
(locking) and recovery mechanisms
(logging)
Instead of regular backups, data
warehouse is refreshed periodically
using data from operational data
sources
Joins Many Few
Derived data and aggregates Rare Common
Data Structures Complex Multi-dimensional
Few Sample Queries  Search & locate student(s)
 Print student scores
 Filter students above 90% marks
 Which courses have productivity
impact on-the-job?
 How much training is needed on
future technologies for non-
linear growth in BI?
 Why consider investing in DSS
experience lab?
Should OLAP be Performed Directly
on Operational Databases?
 OLTP systems support multiple concurrent transactions. Therefore the
OLTP systems have support for concurrency control (locking) and recovery
mechanisms (logging).
 An OLAP system on the other hand requires mostly a read only access to
data records for summarization and aggregation. If concurrency control and
recovery mechanisms are applied for such OLAP operations, it will severely
impact the throughput of an OLAP system.
OLAP Operations on Multi-dimensional Data
 Slice
 Dice
 Roll-up
 Drill down
 Drill through
 Drill across
 Pivot/Rotate
OLAP in BI

More Related Content

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Unit_I_2_Introduction_to_OLTP_and_OLAP.pptx

  • 2. Answer a Quick Question According to your understanding, what are some of the queries that OLTP systems can process?
  • 3.  Search for a particular customer’s record.  Retrieve the product description and unit price of a particular product.  Filter all products with a unit price equal to or above 2500.  Filter all products supplied by a particular supplier.  Search and display the record of a particular supplier. Queries that an OLTP System can Process
  • 4. Examples of OLTP transactions include:  Online banking  Purchasing a book online  Booking an airline ticket  Sending a text message  Order entry  Telemarketers entering telephone survey results  Call centre staff viewing and updating customers’ details
  • 5. Advantages and Challenges of an OLTP System Advantages of an OLTP System  Simplicity – It is designed typically for use by clerks, cashiers, clients, etc.  Efficiency – It allows its users to read, write and delete data quickly.  Fast query processing – It responds to user actions immediately and also supports transaction processing on demand. Challenges of an OLTP System  Security – An OLTP system requires concurrency control (locking) and recovery mechanisms (logging).  OLTP system data content not suitable for decision making  A typical OLTP system manages the current data within an enterprise/organization. This current data is far too detailed to be easily used for decision making.
  • 6.  The super market store is deciding on introducing a new product. The key questions they are debating are: “Which product should they introduce?” and “Should it be specific to a few customer segments?”  The super market store is looking at offering some discount on their year-end sale. The questions here are: “How much discount should they offer?” and “Should it be different discounts for different customer segments?”  In other words:  OLTP transactions are usually very specific in the task that they perform, and they usually involve a single record or a small selection of records.  For example, an online banking customer might send money from his account to his wife’s account. In this case, the transaction only involves two accounts – his account and his wife’s. It does not involve the other bank customers. The Queries that OLTP Cannot Answer
  • 7. OLAP  OLAP differs from traditional databases in the way data is conceptualized and stored.  In OLAP data is held in the dimensional form rather than the relational form.  OLAP’s life blood is multi-dimensional data.  OLAP tools are based on the multi-dimensional data model. The multi- dimensional data model views data in the form of a data cube.  Example:  A Bank manager performing a query across all customer accounts, so that he can see which suburbs had the most active online banking customers during a certain period.
  • 8. Advantages of an OLAP System  Multi-dimensional data representation.  Consistency of information.  “What if ” analysis.  Provides a single platform for all information and business needs – planning, budgeting, forecasting, reporting and analysis.  Fast and interactive ad hoc exploration.
  • 9. So OLAP is…  So a an OLAP tool could be used to summarize sales data by product, region, and time period, for example.  However, OLAP cubes are not restricted to three dimensions. An OLAP cube could have any number of dimensions. In these cases, such a cube is sometimes referred to as a hypercube.
  • 10. Examples of OLAP Tools  Here’s a list of some of the more popular OLAP tools available:  Dundas BI  Sisense  IBM Cognos Analytics  InetSoft  SAP Business Intelligence  Halo
  • 11. OLTP OLAP Online Transaction Processing Online Analytical Processing Focus Data in Data out Source of data Operational/Transactional Data Data extracted from various operational data sources, transformed and loaded into the data warehouse Purpose of data Manage (control and execute) basic business tasks Assists in planning, budgeting, forecasting and decision making Data contents Current data. Far too detailed – not suitable for decision making Historical data. Has support for summarization and aggregation. Stores and manages data at various levels of granularity, thereby suitable for decision making Inserts and updates Very frequent updates and inserts Periodic updates to refresh the data warehouse Queries Simple queries, often returning fewer records Often complex queries involving aggregations Processing speed Usually returns fast Queries usually take a long time (several hours) to execute and return Access Field level access Typically aggregated access to data of business interest
  • 12. OLTP OLAP Online Transaction Processing Online Analytical Processing Database Design Typically normalized tables. OLTP system adopts ER (Entity Relationship) model Typically de-normalized tables; uses star or snowflake schema Operations Read/Write Mostly read Backup and Recovery Regular backups of operational data are mandatory. Requires concurrency control (locking) and recovery mechanisms (logging) Instead of regular backups, data warehouse is refreshed periodically using data from operational data sources Joins Many Few Derived data and aggregates Rare Common Data Structures Complex Multi-dimensional Few Sample Queries  Search & locate student(s)  Print student scores  Filter students above 90% marks  Which courses have productivity impact on-the-job?  How much training is needed on future technologies for non- linear growth in BI?  Why consider investing in DSS experience lab?
  • 13. Should OLAP be Performed Directly on Operational Databases?  OLTP systems support multiple concurrent transactions. Therefore the OLTP systems have support for concurrency control (locking) and recovery mechanisms (logging).  An OLAP system on the other hand requires mostly a read only access to data records for summarization and aggregation. If concurrency control and recovery mechanisms are applied for such OLAP operations, it will severely impact the throughput of an OLAP system.
  • 14. OLAP Operations on Multi-dimensional Data  Slice  Dice  Roll-up  Drill down  Drill through  Drill across  Pivot/Rotate
  • 15.
  • 16.

Editor's Notes

  1. An OLAP system with its adequate tools can help produce Roll-up reports (e.g. if you are viewing the quarterly sales data of your company, you may want to go one level up in the hierarchy and view the annual sales data), Drill-down reports (e.g., if you are viewing the quarterly sales data of your company, you may want to go one level down in the hierarchy and view the sales data for months in a particular quarter), Drill-through reports (e.g. sometimes it may be required to trace back to the data in the operational relational database system), aggregations, summaries, pivot tables, etc. – all focused on varied views/perspectives on the data.
  2. Data has to be extracted from varied database systems scattered around the enterprise, cleansed (error detection and rectification), transformed (conversion of data from a legacy or host format to the data warehouse format) and loaded into a common business data warehouse. The OLAP system then extracts information from the data warehouse and stores it in a multi-dimensional hierarchical database using either a relational OLAP (ROLAP) or multi-dimensional OLAP (MOLAP). Once the data is safely housed in the cube, users can use OLAP query and reporting tools, analysis tools and/or data mining tools (e.g. trend analysis, unearthing hidden patterns, alerts, predictions, etc).