Chapter 5 Database Processing. Neil uses software to query a database, but it has about 25 standard queries that don’t give him all he needs. He imports.

Slides:



Advertisements
Similar presentations
Chapter 1: The Database Environment
Advertisements

Moores Law Co-founder of Intel The number of transistors per square inch on an integrated chip [speed of computing] doubles every 18 months. Accurate for.
Chapter 4 Database Processing. Agenda Purpose of Database Terminology Components of Database System Multi-user Processing Database Design Entity-relationship.
Using MIS 2e Chapter 5 Database Processing MARIA DEL MORAL GROUP F.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Chapter 5 Database Processing.
Chapter 1: The Database Environment
COMM 226 Database and content management Chitu Okoli Associate Professor in Business Technology Management John Molson School of Business, Concordia University,
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Management Information Systems Database Processing Chapter 5.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Oct 31, 2000Database Management -- Fall R. Larson Database Management: Introduction to Terms and Concepts University of California, Berkeley School.
CSCI 260 Database Applications Chapter 1 – Getting Started.
Fundamentals, Design, and Implementation, 9/e SI654 Database Application Design Instructor: Dragomir R. Radev Winter 2005.
Database Management: Getting Data Together Chapter 14.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
Introduction to Database Processing
Database Processing Chapter 4.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-1 David M. Kroenke’s Chapter One: Introduction Part One Database Processing:
CSCI 150 Database Applications Chapter 1 – Getting Started.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Database Processing Chapter "No, Drew, You Don’t Know Anything About Report Writing.” Copyright © 2014 Pearson Education, Inc. Publishing as Prentice.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-1 David M. Kroenke’s Database Processing: Fundamentals, Design, and.
David M. Kroenke and David J. Auer Database Processing—12 th Edition Fundamentals, Design, and Implementation Chapter One: Introduction KROENKE AND AUER.
Getting Started Chapter One DATABASE CONCEPTS, 7th Edition
BUSINESS DRIVEN TECHNOLOGY
Why Databases.
Chapter 1: The Database Environment
Exam2 Review. 5-2 Q1: What Is the Purpose of a Database? Organize and keep track of things Keep track of multiple themes General rule:  Single theme.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Chapter 5 Database Processing.
Using MIS 4e Chapter 5 Database Processing
Database Processing.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
David M. Kroenke’s Chapter One: Introduction Part Two Database Processing: Fundamentals, Design, and Implementation.
Introduction to SQL Steve Perry
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
1 January Management of Information Technology Chapter 10 Database Management Asst. Prof. Wichai Bunchua
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,
Storing Organizational Information - Databases
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
Dimu' Rumpak © 2009 by Prentice Hall 1 Getting Started Didimus Rumpak, M.Si. Database Concepts Chapter 1 1.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
Getting Started Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Introduction to Databases Three File Processing Systems DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-2.
David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design, and Implementation Chapter One: Introduction.
Database Processing Chapter "No, Drew, You Don’t Know Anything About Creating Queries.” Copyright © 2015 Pearson Education, Inc. Operational database.
Introduction to Databases by Dr. Soper extended with more examples
David M. Kroenke and David J
Chapter 4 Relational Databases
Database Processing: David M. Kroenke’s Chapter One: Introduction
Database Processing: David M. Kroenke’s Chapter One: Introduction
Getting Started Chapter One DATABASE CONCEPTS, 5th Edition
Chapter 1 Introduction to Database Processing
Getting Started Chapter One DATABASE CONCEPTS, 4th Edition
Presentation transcript:

Chapter 5 Database Processing

Neil uses software to query a database, but it has about 25 standard queries that don’t give him all he needs. He imports data from database into Excel where he moves, sorts, sums and averages data until he gets information he wants. It’s a pain, but it works. This Could Happen to You: “The Database Shows...” Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall FlexTime video clip 5-2

Q1What is the purpose of a database? Q2What does a database contain? Q3What is a DBMS, and what does it do? Q4What is a database application? Q5What is the difference between an enterprise DBMS and a personal DBMS? How does the knowledge in this chapter help FlexTime and you? Study Questions 5-3 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Purpose: To organize and keep track of things Spreadsheets Keep track of only a single theme  Example: Student test scores in a course Databases Allow keeping track of multiple themes  Examples: Student grades, office visits, student Q1: What Is the Purpose of a Database? 5-4 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

A List of Student Grades, Presented in a Spreadsheet 5-5 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Student Data Shown in a Form from a Database 5-6 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Q2: What Does a Database Contain? 5-7 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Table or file: A group of records

Hierarchy of Data Elements 5-8 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Components of a Database 5-9 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall MetadataMetadata: Describes structure of database (tables, relationships, primary key, etc.) and its data such as data type (text, number, date), size, default, format, etc.

Relational database Database has multiple tables (one for each theme) Values in one table may relate to records in other tables Primary or Unique key Field(s) that uniquely identify a record in a table Each table must have a key Foreign key A non-primary key in one table that is related to a primary key of a different table Relationships Among Records 5-10 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

A column or group of columns that identifies a unique row in a table Student Number is key of Student table Every table must have a key Sometimes more than one column is needed to form a unique identifier Example: key of City table, would be a combination of City and State columns. _Num is key of Table VisitID is key of Office_Visit Table Key Special Terms 1-11 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Relationships among tables are created by using foreign keys Relational databases Formal term for a table Relation More Special Terms 1-12 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

5-13 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Figure 5-6 Relationships Among Records in Three Tables

Database: Self-describing collection of integrated records Metadata Data that describes data Makes databases more useful Makes databases easier to use Describes data by: Data type: text, number, date, etc. Field name Field properties Metadata 5-14 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Sample Metadata in Access 5-15 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Database Management System (DBMS): DBMS ―Program that creates, processes, and administers databases ―Examples: DB2, Microsoft Access, SQL Server, Oracle, MySQL (open-source DBMS) Q3: What Is a DBMS and What Does It Do? 5-16 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Database Collection of tables, relationships, and metadata Database Collection of tables, relationships, and metadata

Components of a Database Application System 5-17 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Creating the Database and Its Structure: Adding “Response?” Field to a Table 5-18 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Read, Insert, Modify, and Delete data Four DBMS operations International standard language for processing databases Structured Query Language (SQL) INSERT INTO Student ([Student Number], [Student Name], HW1, HW2, MidTerm) VALUES (1000, ‘Franklin, Benjamin’, 90, 95, 100) Example SQL statement Processing the Database: SQL 5-19 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Assignment: View this in your Access assignment as you create a query

DBMS security features to set up user accounts, passwords, permissions, processing limits PermissionsPermissions—setting data access rights for specific users or groups of users. We typically do not do it in Access database, but in network database like SQL Server Database backupDatabase backup and replication, adding structures, removing unneeded data Administering the Database 5-20 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Q4: What Is a Database Application? 5-21 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Forms Reports Queries Used to read, insert, modify, and delete data Show data in structured context May compute values such as Totals, within a report Are a means of getting answers from database data Forms, Reports, and Queries 5-22 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Example of a Database Query and Query Result 5-23 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Query form Query result Report

Processing logic for a specific business need Internet database processing to: Connect web server and database Respond to events Read, insert, modify, delete data Database Application Programs 5-24 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Four Database Application Programs Running on a Web Server Via Internet 5-25 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Lost-update problem Occurs when two or more transactions select same record at same time, then update it based on values first received. Each transaction is independent. Last update overwrites updates previously made by others. Multiuser Processing Considerations 5-26 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 10-5 = = 7 5, 7 or 3?

1.Process A reads customer record from file containing customer’s account balance. 1 2.Process B reads same record from same file now has its own copy. 2 3.Process A updates account balance in its copy of customer record and writes record to file. 3 4.Process B has original stale value for account balance. Updates customer’s phone number and writes customer record to file. 4 5.Process B writes stale account balance value to file, causing changes made by Process A to be lost. 5 Multi-User Processing Problem: Lost-update problem Lost-update problemLost-update problem 1-27 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Locking Prevents another user or process to change a record currently being used by another user or process. Gets only a Read-only copyGets only a Read-only copy. Preventing Lost Update Problem 5-28 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Enterprise DBMS Enterprise DBMS Processes large organizational and workgroup databases Supports many users (thousands plus) Examples: DB2, SQL Server, Oracle, MySQL Enterprise DBMS Enterprise DBMS Processes large organizational and workgroup databases Supports many users (thousands plus) Examples: DB2, SQL Server, Oracle, MySQL Personal DBMS Personal DBMS Designed for smaller, simpler database applications Supports fewer than 100 users (mostly 1–10 users) Examples: Access, dBase, FoxPro, R-Base Personal DBMS Personal DBMS Designed for smaller, simpler database applications Supports fewer than 100 users (mostly 1–10 users) Examples: Access, dBase, FoxPro, R-Base Q5: What Is the Difference Between an Enterprise DBMS and a Personal DBMS? 5-29 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Personal Database System 5-30 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Personal Assignment 5-31 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Create a Microsoft Access database that will contain three to four tables such as: CustomerCustomer ProductsProducts OrdersOrders BillingBilling Create a Form through which Customers can make ordersCreate a Form through which Customers can make orders Create a Query and then a Report of recent Orders by CustomersCreate a Query and then a Report of recent Orders by Customers