Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Chapter 4 Database Processing Copyright © 2015 Pearson Education, Inc. 4-1 Learning Objectives Q1. What is the purpose of a database? Q2. What are the contents of a database? Q3. What are the components of a database application system? Q4. How do data models facilitate database design? Copyright © 2015 Pearson Education, Inc. 4-2 Learning Objectives Q5. How is a data model transformed into a database design? Q6. Why are NoSQL and Big Data important? Q7. How can the intramural league improve its database? Copyright © 2015 Pearson Education, Inc. 4-3 What Is the Purpose of a Database? • Databases keep track of things • Lists of data and themes – Single theme (concept) • Can be managed using a spreadsheet – Multiple themes (concepts) • Require databases Copyright © 2015 Pearson Education, Inc. 4-4 What Is the Purpose of a Database? Copyright © 2015 Pearson Education, Inc. 4-5 What Are the Contents of a Database? • Database – Self-describing collection of integrated records • • • • Characters (bytes) Columns (fields) Rows (records) Tables (files) Copyright © 2015 Pearson Education, Inc. 4-6 What Are the Contents of a Database? • What are the relationships among rows? – Key • A value in one row of one table that appears as a value in another row of another table – Primary key • A value that identifies a unique row in a table – Foreign key • A value in one table that appears as a primary key in another table to which it relates Copyright © 2015 Pearson Education, Inc. 4-7 What Are the Contents of a Database? • Relational Database Copyright © 2015 Pearson Education, Inc. 4-8 What Are the Contents of a Database? • Metadata – Data that describe data Copyright © 2015 Pearson Education, Inc. 4-9 What Are the Components of a Database Application System? • Database • DBMS • Database Application(s) Copyright © 2015 Pearson Education, Inc. 4-10 What Are the Components of a Database Application System? • Database Management Systems (DBMS) – Creating the database and its structures – Processing the Database • Read, insert, modify, or delete data • Structured Query Language (SQL) – Administering the database • Database Administrator (DBA) Copyright © 2015 Pearson Education, Inc. 4-11 What Are the Components of a Database Application System? • Database Management Systems (DBMS) Copyright © 2015 Pearson Education, Inc. 4-12 What Are the Components of a Database Application System? • Database Applications – Collection of: • Forms • Reports • Queries • Application programs Copyright © 2015 Pearson Education, Inc. 4-13 What Are the Components of a Database Application System? • Multi-user Processing – Lost update problem Copyright © 2015 Pearson Education, Inc. 4-14 What Are the Components of a Database Application System? • Enterprise DBMS versus Personal DBMS – Enterprise DBMS • 1000’s of users – Personal DBMS • Less than 100 users Copyright © 2015 Pearson Education, Inc. 4-15 What Are the Components of a Database Application System? • Database • DBMS • Database Application(s) Copyright © 2015 Pearson Education, Inc. 4-16 How Do Data Models Facilitate Database Design? • Database Design Process Copyright © 2015 Pearson Education, Inc. 4-17 How Do Data Models Facilitate Database Design? • Entity Relationship (E-R) Model – Tool for constructing data models • Entities – Something users want to track – Attributes • Relationships – Entities are linked to each other Copyright © 2015 Pearson Education, Inc. 4-18 How Do Data Models Facilitate Database Design? • Entity Relationship (E-R) Diagrams – Maximum Cardinality Copyright © 2015 Pearson Education, Inc. 4-19 How Do Data Models Facilitate Database Design? • Entity Relationship (E-R) Diagrams – Maximum and Minimum Cardinality Copyright © 2015 Pearson Education, Inc. 4-20 How Is a Data Model Transformed into a Database Design? • Normalization – Converting poorly structured tables into two or more well-structured tables Copyright © 2015 Pearson Education, Inc. 4-21 How Is a Data Model Transformed into a Database Design? • Normalization – Data integrity problems – Normalizing for data integrity Copyright © 2015 Pearson Education, Inc. 4-22 How Is a Data Model Transformed into a Database Design? • Representing relationships – 1:N relationships – N:M relationships Copyright © 2015 Pearson Education, Inc. 4-23 How Is a Data Model Transformed into a Database Design? • What is the user’s role in the development of databases? – Users are final judges as to the data in the database – Users should review the data models before developing the database Copyright © 2015 Pearson Education, Inc. 4-24 Why Are NoSQL and Big Data Important? • Nonrelational DBMS – NoSQL Copyright © 2015 Pearson Education, Inc. 4-25 Why are NoSQL and Big Data Important? • Will NoSQL replace relational DBMS? • How does Big Data differ from relational data? Copyright © 2015 Pearson Education, Inc. 4-26 How Can the Intramural League Improve its Database? • Opening Vignette: – Intramural problems • Process problem • Database problem Copyright © 2015 Pearson Education, Inc. 4-27 How Can the Intramural League Improve its Database? • League Database, Revision 1 – Update “Team” table with “Season” field – Rename the table “Team_Season” Copyright © 2015 Pearson Education, Inc. 4-28 How Can the Intramural League Improve its Database? • Database Revision 1 Copyright © 2015 Pearson Education, Inc. 4-29 How Can the Intramural League Improve its Database? • Database Revision 2 Copyright © 2015 Pearson Education, Inc. 4-30 How Can the Intramural League Improve its Database? • Opening Vignette: – Intramural problems • Process problem • Database problem Copyright © 2015 Pearson Education, Inc. 4-31 Ethics Guide • Querying Inequality? – MaryAnn accidentally uncovers potential discrimination data in the database – What should she do? – Discussion Questions Copyright © 2015 Pearson Education, Inc. 4-32 Conclusion Q1. What is the purpose of a database? Q2. What are the contents of a database? Q3. What are the components of a database application system? Q4. How do data models facilitate database design? Copyright © 2015 Pearson Education, Inc. 4-33 Conclusion Q5. How is a data model transformed into a database design? Q6. Why are NoSQL and Big Data important? Q7. How can the intramural league improve its database? Copyright © 2015 Pearson Education, Inc. 4-34 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2015 Pearson Education, Inc. 4-35