Chapter 5 Database Processing.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Chapter 4 Database Processing. Agenda Purpose of Database Terminology Components of Database System Multi-user Processing Database Design Entity-relationship.
Database Design Chapter Extension 4. ce4-2 Study Questions Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall Q1: Who will volunteer?
Using MIS 2e Chapter 5 Database Processing MARIA DEL MORAL GROUP F.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Management Information Systems, Sixth Edition
Chapter 5 Database Processing.
Accounting System Design
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,
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Fundamentals, Design, and Implementation, 9/e SI654 Database Application Design Instructor: Dragomir R. Radev Winter 2005.
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.
3-1 Chapter 3 Data and Knowledge Management
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
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.
Chapter 3: Data Modeling
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
Why Databases.
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Using MIS 4e Chapter 5 Database Processing
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Database Processing.
David M. Kroenke’s Chapter One: Introduction Part Two Database Processing: Fundamentals, Design, and Implementation.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
1 January Management of Information Technology Chapter 10 Database Management Asst. Prof. Wichai Bunchua
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
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.
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.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Getting Started Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Fanny Widadie, S.P, M.Agr 1 Database Management Systems.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
Introduction to Databases Three File Processing Systems DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-2.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
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.
Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology.
David M. Kroenke and David J
Chapter 4 Relational Databases
Database Processing: David M. Kroenke’s Chapter One: Introduction
Chapter 9 Designing Databases
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
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Presentation transcript:

Chapter 5 Database Processing

WHAT IS THE PURPOSE OF A DATABASE? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

What Is the Purpose of a Database? Organize and keep track of things Keep track of multiple themes General rule: Single theme store in a spreadsheet Multiple themes require a database Basic purpose of a database is to organize and keep track of things. Databases are needed when you need to keep track of multiple themes, such as grades, students, office visits and email messages. General rule: Use a spreadsheet for lists of data involving single theme. Use a database for data with multiple themes.

A List of Student Grades Presented in a Spreadsheet – Single Theme Spreadsheet with a single theme – Grades.

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Data Redundancy and Data Inconsistency Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Student Data Form With Multiple Themes Forms are difficult, if not impossible, to produce from a spreadsheet, but are easily produced with a database.

WHY DO WE NEED DATABASES Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Why we need databases Size Ease of Updating Accuracy Security Redundancy Importance Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall WHAT IS A DATABASE? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Components of a Database Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Tables Table or file: A group of records Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Tables (cont’d) Each table must have a unique identifier called the Primary Key (PK) Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

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

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

Primary and Foreign Keys Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Metadata Metadata Describes data by: 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 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

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

Features of Relational Databases Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Features of Relational Databases (cont’d) Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall WHAT IS A DBMS? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

What Is a DBMS and What Does It Do? Database management system (DBMS) Program that creates, processes, and administers databases Examples: Database Collection of tables, relationships, and metadata DBMS A software program Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

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

Processing the Database Four DBMS operations Read Insert Modify Delete data These operations are requested in applications that call upon the DBMS in different ways.

Structured Query Language (SQL) SQL (see-quell) International standard Used by most popular DBMS Structured Query Language (SQL) is used for processing the database. SQL is an international standard language for creating databases and database structures, and processing databases. SQL is used by all popular DBMS products.

Structured Query Language (SQL) Structured Query Language (SQL) is used for processing the database. SQL is an international standard language for creating databases and database structures, and processing databases. SQL is used by all popular DBMS products.

WHAT IS A DATABASE APPLICATION? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Database Applications Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Forms, Reports, and 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 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

How Are Database Application Systems Developed? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

How Are Database Application Systems Developed? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

What Are the Components of the Entity-Relationship Data (ERD) Model? Something users want to track Order, customer, salesperson, item, volunteer, donation Entities Describe characteristics of an entity OrderNumber, CustomerNumber, VolunteerName, PhoneNumber Attributes Attribute that uniquely identifies one entity instance from other instances Student_ID_Number Identifier Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Creating ERDs Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Student Data Model Entities Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Example of Department, Adviser, and Student Entities and Relationships A department may have many advisers An adviser works in one department An adviser advises many students A student may have one or more advisers 1:N relationships N:M relationships Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Example of Department, Adviser, and Student Entities and Relationships N:M 1:N Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Entity Relationship Diagram (ERD) ― Version 1 Crow’s Feet 1:N N:M 1:N = one-to-many relationships One department can have many advisers, but an adviser is in only one department N:M = many-to-many relationships One adviser can have many students and one student can have many advisers Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Entity Relationship Diagram (ERD) – Version 2 “Crow’s Foot” N:M = many-to-many relationship A department has many advisors and an advisor may advise for more than one department 1:N = one-to-many relationship A student has only one advisor, but an adviser may advise many students Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Defining one-to-many relationships Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

How Are Database Application Systems Developed? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Transforming a Data Model into a Database Design Represent each entity with a table Entity identifier becomes table key Entity attributes become table columns Normalize tables as necessary Represent relationships Use foreign keys Create additional tables for N:M relationships Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Representing 1:N Relationships Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Exploring many-to-many relationships Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Representing an N:M Relationship: Strategy for Foreign Keys Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

How Are Database Application Systems Developed? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

What Is the Difference Between an Enterprise DBMS and a Personal DBMS? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

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