SlideShare una empresa de Scribd logo
1 de 23
CPS 216: Advanced Database Systems Shivnath Babu Fall 2006
Outline for Today ,[object Object],[object Object],[object Object]
Data Management Query Query Query D ata B ase  M anagement  S ystem  (DBMS) Data Application
Example: At a Company Employee Department Query 1: Is there an employee named “Nemo”? Query 2: What is “Nemo’s” salary? Query 3: How many departments are there in the company? Query 5: What is the name of “Nemo’s” department? Query 4: How many employees have Salary >= 80K?  Query 6: How many employees are there in the  “ Accounts” department? … 85K 76K 79K 120K Salary … … … … … 34 Ray 52 … 89 Gill 40 … 156 Dory 20 … 12 Nemo 10 … DeptID Name ID … … … … Marketing 156 … HR 89 … Accounts 34 … IT 12 … Name ID
D ata B ase  M anagement  S ystem  (DBMS) DBMS Data High-level Query Q Answer Translates Q into best  execution plan for  current conditions, runs plan
Example: Store that Sells Cars Cars Owners Owners of Honda Accords who are <= 23 years old 156 Accord Honda … … … 89 Cooper Mini 34 Camry Toyota 12 Accord Honda OwnerID Model Make 21 Dory 156 … … … 36 Gill 89 42 Ray 34 22 Nemo 12 Age Name ID Filter (Make = Honda and Model = Accord) Join (Cars.OwnerID = Owners.ID) 156 12 OwnerID 21 Dory 156 Accord Honda 22 Nemo 12 Accord Honda Age Name ID Model Make Filter (Age <= 23)
D ata B ase  M anagement  S ystem  (DBMS) DBMS Data High-level Query Q Answer Translates Q into best  execution plan for  current conditions, runs plan Keeps data safe and correct despite failures,  concurrent updates, online processing, etc.
DBMS is multi-user ,[object Object],[object Object],[object Object],[object Object],[object Object]
Final balance = $300 read balance;  $400 if balance > amount then   balance = balance - amount;  $300   write balance;  $300 read balance;  $400 if balance > amount then   balance = balance - amount;  $350   write balance;  $350 Homer withdraws $100: Marge withdraws $50:
Final balance = $350 read balance;  $400 if balance > amount then   balance = balance - amount;  $300   write balance;  $300 read balance;  $400 if balance > amount then   balance = balance - amount;  $350   write balance;  $350 Homer withdraws $100: Marge withdraws $50:
Concurrency control in DBMS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Recovery in DBMS ,[object Object],[object Object],[object Object],[object Object]
D ata B ase  M anagement  S ystem  (DBMS) DBMS Data High-level Query Q Answer Translates Q into best  execution plan for  current conditions, runs plan Keeps data safe and correct despite failures,  concurrent updates, online processing, etc.
Summary of modern DBMS features ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Modern DBMS Architecture Applications OS SQL File system API calls DBMS Disk(s) Parser Query Optimizer Query Executor Storage Manager Logical query plan Physical query plan Access method API calls Storage system API calls
Course Outline ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Using a Traditional DBMS User/Application Loader Table R Table S Query Result Result … Query …
New Approach for Data Streams User/Application Stream Query Processor Register  Continuous Query (Standing Query) Input streams Result
Example Continuous (Standing) Queries ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Course Outline ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
New Challenges in DBMSs DBMS Data TeraBytes    PetaBytes <CD>  <TITLE>Empire B.</TITLE> <ARTIST>Bob Dylan</ARTIST> <COUNTRY>USA</COUNTRY>  <COMPANY>Columbia </COMPANY> <PRICE>10.90</PRICE> </CD>   High-level Query Q Answer
Course Logistics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Summary: Data Management is Important ,[object Object],[object Object],[object Object],[object Object]

Más contenido relacionado

Similar a 01 intro

http://www.hfadeel.com/Blog/?p=151
http://www.hfadeel.com/Blog/?p=151http://www.hfadeel.com/Blog/?p=151
http://www.hfadeel.com/Blog/?p=151xlight
 
Indic threads pune12-nosql now and path ahead
Indic threads pune12-nosql now and path aheadIndic threads pune12-nosql now and path ahead
Indic threads pune12-nosql now and path aheadIndicThreads
 
Optimizing Callidus TrueComp Suite: Tips and Tricks
Optimizing Callidus TrueComp Suite: Tips and TricksOptimizing Callidus TrueComp Suite: Tips and Tricks
Optimizing Callidus TrueComp Suite: Tips and TricksCallidus Software
 
SEM 3 MIS SUMMER 2014 ASSIGNMENTS
SEM 3 MIS SUMMER 2014 ASSIGNMENTSSEM 3 MIS SUMMER 2014 ASSIGNMENTS
SEM 3 MIS SUMMER 2014 ASSIGNMENTSsolved_assignments
 
5 Years of Progress in Active Data Warehousing
5 Years of Progress in Active Data Warehousing5 Years of Progress in Active Data Warehousing
5 Years of Progress in Active Data WarehousingTeradata
 
OLAP on the Cloud with Azure Databricks and Azure Synapse
OLAP on the Cloud with Azure Databricks and Azure SynapseOLAP on the Cloud with Azure Databricks and Azure Synapse
OLAP on the Cloud with Azure Databricks and Azure SynapseAtScale
 
Mi0034 database management systems
Mi0034  database management systemsMi0034  database management systems
Mi0034 database management systemssmumbahelp
 
Architectural anti-patterns for data handling
Architectural anti-patterns for data handlingArchitectural anti-patterns for data handling
Architectural anti-patterns for data handlingGleicon Moraes
 
Introduction to Theme Preprocess Functions
Introduction to Theme Preprocess FunctionsIntroduction to Theme Preprocess Functions
Introduction to Theme Preprocess Functionsc4rl
 
7 Database Mistakes YOU Are Making -- Linuxfest Northwest 2019
7 Database Mistakes YOU Are Making -- Linuxfest Northwest 20197 Database Mistakes YOU Are Making -- Linuxfest Northwest 2019
7 Database Mistakes YOU Are Making -- Linuxfest Northwest 2019Dave Stokes
 
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...John McCaffrey
 
Windy cityrails performance_tuning
Windy cityrails performance_tuningWindy cityrails performance_tuning
Windy cityrails performance_tuningJohn McCaffrey
 
What is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
What is OLAP -Data Warehouse Concepts - IT Online Training @ NewyorksysWhat is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
What is OLAP -Data Warehouse Concepts - IT Online Training @ NewyorksysNEWYORKSYS-IT SOLUTIONS
 
Data Vault 2.0 Demystified: East Coast Tour
Data Vault 2.0 Demystified: East Coast TourData Vault 2.0 Demystified: East Coast Tour
Data Vault 2.0 Demystified: East Coast TourWhereScape
 
Evolutionary db development
Evolutionary db development Evolutionary db development
Evolutionary db development Open Party
 
Introduction to Big Data & Hadoop
Introduction to Big Data & HadoopIntroduction to Big Data & Hadoop
Introduction to Big Data & HadoopEdureka!
 
Storage Systems for High Scalable Systems Presentation
Storage Systems for High Scalable Systems PresentationStorage Systems for High Scalable Systems Presentation
Storage Systems for High Scalable Systems Presentationandyman3000
 

Similar a 01 intro (20)

http://www.hfadeel.com/Blog/?p=151
http://www.hfadeel.com/Blog/?p=151http://www.hfadeel.com/Blog/?p=151
http://www.hfadeel.com/Blog/?p=151
 
Indic threads pune12-nosql now and path ahead
Indic threads pune12-nosql now and path aheadIndic threads pune12-nosql now and path ahead
Indic threads pune12-nosql now and path ahead
 
Optimizing Callidus TrueComp Suite: Tips and Tricks
Optimizing Callidus TrueComp Suite: Tips and TricksOptimizing Callidus TrueComp Suite: Tips and Tricks
Optimizing Callidus TrueComp Suite: Tips and Tricks
 
SEM 3 MIS SUMMER 2014 ASSIGNMENTS
SEM 3 MIS SUMMER 2014 ASSIGNMENTSSEM 3 MIS SUMMER 2014 ASSIGNMENTS
SEM 3 MIS SUMMER 2014 ASSIGNMENTS
 
Data-ware Housing
Data-ware HousingData-ware Housing
Data-ware Housing
 
5 Years of Progress in Active Data Warehousing
5 Years of Progress in Active Data Warehousing5 Years of Progress in Active Data Warehousing
5 Years of Progress in Active Data Warehousing
 
ITReady DW Day2
ITReady DW Day2ITReady DW Day2
ITReady DW Day2
 
OLAP on the Cloud with Azure Databricks and Azure Synapse
OLAP on the Cloud with Azure Databricks and Azure SynapseOLAP on the Cloud with Azure Databricks and Azure Synapse
OLAP on the Cloud with Azure Databricks and Azure Synapse
 
Mi0034 database management systems
Mi0034  database management systemsMi0034  database management systems
Mi0034 database management systems
 
Architectural anti-patterns for data handling
Architectural anti-patterns for data handlingArchitectural anti-patterns for data handling
Architectural anti-patterns for data handling
 
Introduction to Theme Preprocess Functions
Introduction to Theme Preprocess FunctionsIntroduction to Theme Preprocess Functions
Introduction to Theme Preprocess Functions
 
7 Database Mistakes YOU Are Making -- Linuxfest Northwest 2019
7 Database Mistakes YOU Are Making -- Linuxfest Northwest 20197 Database Mistakes YOU Are Making -- Linuxfest Northwest 2019
7 Database Mistakes YOU Are Making -- Linuxfest Northwest 2019
 
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
 
Windy cityrails performance_tuning
Windy cityrails performance_tuningWindy cityrails performance_tuning
Windy cityrails performance_tuning
 
What is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
What is OLAP -Data Warehouse Concepts - IT Online Training @ NewyorksysWhat is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
What is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
 
Data Vault 2.0 Demystified: East Coast Tour
Data Vault 2.0 Demystified: East Coast TourData Vault 2.0 Demystified: East Coast Tour
Data Vault 2.0 Demystified: East Coast Tour
 
Mi0034 summer 2014
Mi0034 summer 2014Mi0034 summer 2014
Mi0034 summer 2014
 
Evolutionary db development
Evolutionary db development Evolutionary db development
Evolutionary db development
 
Introduction to Big Data & Hadoop
Introduction to Big Data & HadoopIntroduction to Big Data & Hadoop
Introduction to Big Data & Hadoop
 
Storage Systems for High Scalable Systems Presentation
Storage Systems for High Scalable Systems PresentationStorage Systems for High Scalable Systems Presentation
Storage Systems for High Scalable Systems Presentation
 

Más de sumit621

142230 633685297550892500
142230 633685297550892500142230 633685297550892500
142230 633685297550892500sumit621
 
Datawarehousing
DatawarehousingDatawarehousing
Datawarehousingsumit621
 
Datamining
DataminingDatamining
Dataminingsumit621
 
Cssu dw dm
Cssu dw dmCssu dw dm
Cssu dw dmsumit621
 
Chapter 13 data warehousing
Chapter 13   data warehousingChapter 13   data warehousing
Chapter 13 data warehousingsumit621
 
90300 633579030311875000
90300 63357903031187500090300 633579030311875000
90300 633579030311875000sumit621
 

Más de sumit621 (12)

142230 633685297550892500
142230 633685297550892500142230 633685297550892500
142230 633685297550892500
 
Part1
Part1Part1
Part1
 
Lecture1
Lecture1Lecture1
Lecture1
 
Lect4
Lect4Lect4
Lect4
 
Datawarehousing
DatawarehousingDatawarehousing
Datawarehousing
 
Datamining
DataminingDatamining
Datamining
 
Database
DatabaseDatabase
Database
 
Cssu dw dm
Cssu dw dmCssu dw dm
Cssu dw dm
 
Chapter 13 data warehousing
Chapter 13   data warehousingChapter 13   data warehousing
Chapter 13 data warehousing
 
Chap05
Chap05Chap05
Chap05
 
90300 633579030311875000
90300 63357903031187500090300 633579030311875000
90300 633579030311875000
 
Talk
TalkTalk
Talk
 

01 intro

  • 1. CPS 216: Advanced Database Systems Shivnath Babu Fall 2006
  • 2.
  • 3. Data Management Query Query Query D ata B ase M anagement S ystem (DBMS) Data Application
  • 4. Example: At a Company Employee Department Query 1: Is there an employee named “Nemo”? Query 2: What is “Nemo’s” salary? Query 3: How many departments are there in the company? Query 5: What is the name of “Nemo’s” department? Query 4: How many employees have Salary >= 80K? Query 6: How many employees are there in the “ Accounts” department? … 85K 76K 79K 120K Salary … … … … … 34 Ray 52 … 89 Gill 40 … 156 Dory 20 … 12 Nemo 10 … DeptID Name ID … … … … Marketing 156 … HR 89 … Accounts 34 … IT 12 … Name ID
  • 5. D ata B ase M anagement S ystem (DBMS) DBMS Data High-level Query Q Answer Translates Q into best execution plan for current conditions, runs plan
  • 6. Example: Store that Sells Cars Cars Owners Owners of Honda Accords who are <= 23 years old 156 Accord Honda … … … 89 Cooper Mini 34 Camry Toyota 12 Accord Honda OwnerID Model Make 21 Dory 156 … … … 36 Gill 89 42 Ray 34 22 Nemo 12 Age Name ID Filter (Make = Honda and Model = Accord) Join (Cars.OwnerID = Owners.ID) 156 12 OwnerID 21 Dory 156 Accord Honda 22 Nemo 12 Accord Honda Age Name ID Model Make Filter (Age <= 23)
  • 7. D ata B ase M anagement S ystem (DBMS) DBMS Data High-level Query Q Answer Translates Q into best execution plan for current conditions, runs plan Keeps data safe and correct despite failures, concurrent updates, online processing, etc.
  • 8.
  • 9. Final balance = $300 read balance; $400 if balance > amount then balance = balance - amount; $300 write balance; $300 read balance; $400 if balance > amount then balance = balance - amount; $350 write balance; $350 Homer withdraws $100: Marge withdraws $50:
  • 10. Final balance = $350 read balance; $400 if balance > amount then balance = balance - amount; $300 write balance; $300 read balance; $400 if balance > amount then balance = balance - amount; $350 write balance; $350 Homer withdraws $100: Marge withdraws $50:
  • 11.
  • 12.
  • 13. D ata B ase M anagement S ystem (DBMS) DBMS Data High-level Query Q Answer Translates Q into best execution plan for current conditions, runs plan Keeps data safe and correct despite failures, concurrent updates, online processing, etc.
  • 14.
  • 15. Modern DBMS Architecture Applications OS SQL File system API calls DBMS Disk(s) Parser Query Optimizer Query Executor Storage Manager Logical query plan Physical query plan Access method API calls Storage system API calls
  • 16.
  • 17. Using a Traditional DBMS User/Application Loader Table R Table S Query Result Result … Query …
  • 18. New Approach for Data Streams User/Application Stream Query Processor Register Continuous Query (Standing Query) Input streams Result
  • 19.
  • 20.
  • 21. New Challenges in DBMSs DBMS Data TeraBytes  PetaBytes <CD> <TITLE>Empire B.</TITLE> <ARTIST>Bob Dylan</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>Columbia </COMPANY> <PRICE>10.90</PRICE> </CD> High-level Query Q Answer
  • 22.
  • 23.