--Motivation for using a database--1 Motivation for usin1g a database Why Use a Database.

Slides:



Advertisements
Similar presentations
How data is stored. Data can be stored in paper-based systems including: Reference books Dictionaries Encyclopaedias Directories Index Files Filing systems.
Advertisements

Database management system (DBMS)  a DBMS allows users and other software to store and retrieve data in a structured way  controls the organization,
Manipulating Data Schedule: Timing Topic 60 minutes Lecture
Introduction to Structured Query Language (SQL)
Chapter Information Systems Database Management.
Introduction to Structured Query Language (SQL)
WHY USE DATABASES Professor Pepper Credited to: Professor Juliana Freire.
Concepts of Database Management Sixth Edition
Introduction to Structured Query Language (SQL)
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Lecture Note 8 Using Data Flow Diagrams
A Billiards Point of Sale Application Christopher Ulmer CS 470 Final Presentation.
INTRODUCTION TO TRANSACTION PROCESSING CHAPTER 21 (6/E) CHAPTER 17 (5/E)
Objectives Learn what a file system does
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Advanced Excel for Finance Professionals A self study material from South Asian Management Technologies Foundation.
Introduction. 
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor Ms. Arwa.
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Chapter 1 In-lab Quiz Next week
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
© 2007 by Prentice Hall 1 Introduction to databases.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Key Applications Module Lesson 21 — Access Essentials
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Chapter 4c, Database H Definition H Structure H Parts H Types.
CS370 Spring 2007 CS 370 Database Systems Lecture 1 Overview of Database Systems.
CS 1308 Computer Literacy and the Internet
Advantage of File-oriented system: it provides useful historical information about how data are managed earlier. File-oriented systems create many problems.
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Copyright © by Curt Hill Database Introduction History Why we want to use them Other fun.
DATABASE SYSTEMS. DATABASE u A filing system for holding data u Contains a set of similar files –Each file contains similar records Each record contains.
Introduction to Database Systems1. 2 Basic Definitions Mini-world Some part of the real world about which data is stored in a database. Data Known facts.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Databases.
3 / 12 Databases MIS105 Lec13 Irfan Ahmed Ilyas CHAPTER Prepared By:
What have we learned?. What is a database? An organized collection of related data.
Chapter 9 Database Systems © 2007 Pearson Addison-Wesley. All rights reserved.
System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.
BlockWood Video 1. Handle rentals and purchases 2. Save all transactions to the database 3. Manage accounts and members 4. Refund items 5. Provide premium.
CIS 338: VB.NET & Databases Dr. Ralph D. Westfall May, 2011.
Database Management Systems (DBMS)
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
CIS 250 Advanced Computer Applications Database Management Systems.
FILE ORGANIZATION.
Introduction to Databases Angela Clark University of South Alabama.
10 1 Chapter 10 - A Transaction Management Database Systems: Design, Implementation, and Management, Rob and Coronel.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
GCSE ICT How data is stored. How is data stored? Data can be stored in paper-based systems including: –Reference books –Dictionaries –Encyclopaedias –Directories.
( ) 1 Chapter # 8 How Data is stored DATABASE.
Design Skills Example.
Chapter 12 Information Systems.
Week 12 Option 3: Database Design
Microsoft Office Illustrated Fundamentals
Information Systems Database Management
Department of Information Technology
Chapter 4 Relational Databases
Complete Management of your Entire Backflow Program
FILE ORGANIZATION.
Data Model.
Chapter 7 Using SQL in Applications
Chapter 7 Using SQL in Applications
Presentation transcript:

--Motivation for using a database--1 Motivation for usin1g a database Why Use a Database

--Motivation for using a database--2 Data Management Example  Scenario You are a DVD store owner.  You are a DVD store owner.  Customers rent DVDs of movies.  Several copies of each movie.  Needs  Which DVDs has a customer rented?  Are any DVD overdue?  When will a DVD become available?

--Motivation for using a database--3 Solution: A File-based System  Edit rented.txt file Customer: Cindy Liu, Rented: Harry Potter, Due: Set. 19,  Advantages  Text editors are easy to use  Simple to insert a record  Simple to delete a record

--Motivation for using a database--4 Complication: Queries  Does not address needs Query: What movies has Cindy Liu rented? Execute (not quite right): Search for ‘Cindy Liu’. Search for ‘^\s+Customer:\s*Cindy\s+Liu\s*,\s+Rented:’. Query: Are any DVDs overdue? Execute: ???  Requirements  Robust, sophisticated query language  Clear separation between data organization (schema) and data

--Motivation for using a database--5 Complication: Queries  Lacks data integrity, consistency  Clerk misspells value/field Customer: Cindy Lui, Rented: Harry Potter, Deu: Sep. 19, 2007  Inputs improper value, same value differently Customer: Cindy Liu, Rented: Harry Potter2, Due: Sep. 29, 2007  Forgets/adds/reorders field Terms: weekly special Due: Sep. 19, 2007, Rented: Harry Potter  Requirements  Enforce constraints to permit only valid information to be input.

--Motivation for using a database--6 Complication: Update  Add/delete/update fields in every record  Record store location. Customer: JD, Rented: Babe, Due : Sep. 19, 2007, Store: Bry  Modify customer to first and surname. First: Joe, Surname: Doe, Rented: Babe, Due: Sep. 29, 2004  Add/delete/update new information collections  customer.txt file to record information Customer: Jane Doe, Phone:  Requirements  Ability to manipulate the way data is organized.

--Motivation for using a database--7 Complication: Multiple Users  Two clerks edit rented.txt file at the same time. 1) Ben starts to edit rented.txt, reads it into memory. 2) Sarah starts to edit rented.txt. 3) Ben adds a record. 4) Ben saves rented.txt to disk. 5) Sarah saves rented.txt to disk. Ben’s added record disappears!  Requirements  Must support multiple readers and writers.  Updates to data must (appear to) occur in serial order.

--Motivation for using a database--8 Complication: Crashes  Crash during update may lead to inconsistent state.  Ben makes 250 of 500 edits to change Jane Doe to her preferred name Jan Doe.  Before he saves it, Windows crashes!  Requirements  Must update on all or none basis.  Implemented by commit or rollback if necessary.

--Motivation for using a database--9 Complication: Data Physically Separate  Wants  Want to advise Austin Power’s fans about new A P’s movie.  Method  customer.txt contains addresses of customers.  Must merge with rented.txt to create mailing list.  Problems  Text editors incapable of such a merge (write a program)  Several Joe Jenkins  Requirements  Uniquely identify each customer.

--Motivation for using a database--10 Complication: Security  Customers want to know how many times a movie has been rented.  Provide access to rented.txt, but not to customer field, how to I do that in an editor?  Underage clerks should not see history of R-rated rentals.  Keep two lists of rentals?  Requirements  Ability to control who has access to what information.

--Motivation for using a database--11 Complication: Efficiency  All DVD store owners in Dublin get together  rented.txt file gets huge (gigabytes of data).  Slow to edit.  Slow to query for customer information.  Requirements  New data structures to improve query performance.  System automatically modifies queries to improve speed.  Ability of system to scale to handle huge datasets.

--Motivation for using a database--12 Complication: New Needs  All DVD store owners in Dublin get together.  What pairs of movies are often rented together?  Calculate probability of movie combinations.  Do we need more copies of the Austin Powers movie anywhere?  Plot rental history of Austin Powers by store area.  Requirements  Collect and analyse summary data.  Use computer to mine for interesting trends.  Support access to data by sophisticated programs.

--Motivation for using a database--13 File-based Systems - Overview  A DVD store owner develops a system based on files. DVD rental check in program new DVD ordering program customer mailing program rented DVD file inventory master file customer file