introduction to database systems cs312 an overview of
play

Introduction to Database Systems: CS312 An Overview of Databases - PowerPoint PPT Presentation

Database applications I have connections Common problems Group Work Introduction to Database Systems: CS312 An Overview of Databases Oliver Bonham-Carter 2 Sept 2020 1 / 20 Lets discuss... Database applications I have connections


  1. Database applications I have connections Common problems Group Work Introduction to Database Systems: CS312 An Overview of Databases Oliver Bonham-Carter 2 Sept 2020 1 / 20

  2. Let’s discuss... Database applications I have connections Common problems Group Work What is the function of a database? 1 / 20

  3. Database Management System (DBMS) Database applications I have connections Common problems Group Work Database Applications: Banking: transactions Airlines: reservations, schedules Universities: registration, grades Sales: customers, products, purchases Online retailers: order tracking, customized recommendations Manufacturing: production, inventory, orders, supply chain Human resources: employee records, salaries, tax deductions 2 / 20

  4. Databases at Our College! Database applications I have connections Common problems Group Work Application: Adding new students, instructors, and courses Registering students for courses, and generate class rosters Assigning grades to students, Computing grade point averages (GPA) Generating transcripts 3 / 20

  5. To connect data in some meaningful way Database applications I have connections Common problems Group Work 4 / 20

  6. Database - A True Story (sort of) Database applications I have connections Common problems Group Work Databases were not always used as they are today ... They were often disconnected systems Isolated from other systems that contained similar data. (Why would anyone use this configuration??) 5 / 20

  7. Meanwhile at Batman and Associates ... One database was working well... Database applications I have connections Common problems Group Work One (simple) working database containing all company information. 6 / 20

  8. Two teams join Batman and Associates ... Database applications I have connections Common problems Group Work 7 / 20

  9. Batman and Associates ... Two identical bases created from a single base Database applications I have connections Common problems Group Work The database is copied into two new identical bases for use by two different teams in the Bat-cave. 8 / 20

  10. Each team gets own DB... Database applications I have connections Common problems Group Work 9 / 20

  11. Batman and Associates ... Problems in the Bat-cave Database applications I have connections Common problems Group Work Nearly identical: no equal updating of each base. Teams verbally communicate changes to each other 10 / 20

  12. Batman and Associates confuses an address... What went wrong?! :-( Database applications I have connections Common problems Group Work 11 / 20

  13. How Many Databases Do You Need?? Common problems Database applications I have Let’s talk about ... connections Common Problems with Databases Common problems Group Work 12 / 20

  14. How Many Databases Do You Need?? Common problems Database applications I have connections Common problems Group Work Database applications were once built directly on top of file systems (i.e., permanent records of information in various spread-out files) A firm may have managed several information sources! Anything wrong with this picture? 13 / 20

  15. Messy Data Storage? Risks of having several different DBs for same information Database applications I have connections Common problems Group Work Drawbacks of using file systems to store data Data redundancy and inconsistency Multiple file formats, duplication of information in different files - hard to share Difficulty in accessing data Need to write a new program to carry out each new task Data redundancy and inconsistency Data isolation - multiple files and formats 14 / 20

  16. Messy Data Storage? Database applications I have Drawbacks of using file systems to store data, continued connections Data redundancy and inconsistency Common problems Integrity problems - The data is not accurate and Group Work consistently stored Data redundancy and inconsistency Integrity constraints (i.e., account balance ≥ 0) become “buried” in program code rather than being stated explicitly Hard to add new constraints or change existing ones How many times did you see, “Data redundancy and inconsistency”, here?? How many times should you see the same data in your DB?? 15 / 20

  17. Messy Data Storage? Database applications I have connections Common problems Atomicity of updates Group Work An atomic transaction is an indivisible and irreducible series of database operations such that either all occur, or nothing occurs. Failures may leave database in an inconsistent state with partial updates carried out Example: Transfer of funds from one account to another should either complete or not happen at all 16 / 20

  18. Messy Data Storage? Database applications I have connections Common problems Concurrency : transactions at same time Group Work Access by multiple users Access needed for performance - no slow-down Uncontrolled concurrent accesses can lead to inconsistencies Example: Two people reading a balance (say 100) and updating it by withdrawing money (say 50 each) at the same time 17 / 20

  19. Messy Data Storage? Database applications I have connections Common problems Group Work Security problems Hard to provide user access to some, but not all, data Difficult to control how data is used How to watch all databases, all the time? Database systems offer solutions to all the above problems 18 / 20

  20. Video: Finding Trends in Data Database applications I have connections Common problems Group Work Hans Rosling’s 200 Countries, 200 Years, 4 Minutes - The Joy of Stats https://www.youtube.com/watch?v=jbkSRLYSojo 19 / 20

  21. Video: Questions Database applications I have connections Common problems Group Work 1 What kind of data was likely being used for this study? 2 Where could a database serve in this project? 3 How was the data likely organized for the study? 4 What kinds of relationships were likely used to connect data points? 5 How could this study be done in absence of a database? 20 / 20

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend