Chapter 9: Database Systems

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

C6 Databases.
Management Information Systems, Sixth Edition
Chapter 9 Database Systems. 2 Chapter 9: Database Systems 9.1 Database Fundamentals 9.2 The Relational Model 9.3 Object-Oriented Databases 9.4 Maintaining.
Database Management: Getting Data Together Chapter 14.
Organizing Data & Information
Mgt 20600: IT Management & Applications Databases
Chapter 9: Database Systems
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Intro to MIS – MGS351 Databases and Data Warehouses Chapter 3.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
1 California State University, Fullerton Chapter 7 Information System Data Management.
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
1 Adapted from Pearson Prentice Hall Adapted form James A. Senn’s Information Technology, 3 rd Edition Chapter 7 Enterprise Databases and Data Warehouses.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
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.
Chapter 9 Database Systems Introduction to CS 1 st Semester, 2014 Sanghyun Park.
Chapter 9 Database Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 9 Database Systems. © 2005 Pearson Addison-Wesley. All rights reserved 9-2 Chapter 9: Database Systems 9.1 Database Fundamentals 9.2 The Relational.
Advanced Accounting Information Systems Day 10 answers Organizing and Manipulating Data September 16, 2009.
Introduction to Database Chapter #9 Sec 9.1. What is a Database? A flat file is considered to be one-dimensional storage system because it presents its.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Data The fact and figures that can be recorded in system and that have some special meaning assigned to it. Eg- Data of a customer like name, telephone.
Fundamentals of Information Systems, Sixth Edition Chapter 3 Database Systems, Data Centers, and Business Intelligence.
Copyright © 2012 Pearson Education, Inc. Communication Skills.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
James A. Senn’s Information Technology, 3rd Edition
Introduction To DBMS.
CHAPTER SIX DATA Business Intelligence
Fundamentals of Information Systems, Sixth Edition
Datab ase Systems Week 1 by Zohaib Jan.
Outline Types of Databases and Database Applications Basic Definitions
Decision Support System by Simulation Model (Ajarn Chat Chuchuen)
Chapter 9 Database Systems
Fundamentals of Information Systems, Sixth Edition
Fundamentals & Ethics of Information Systems IS 201
Introduction to Information Technology
Chapter Ten Managing a Database.
Fundamentals of Information Systems
Information Systems Database Management
Chapter 4 Relational Databases
Database Database is a large collection of related data that can be stored, generally describes activities of an organization. An organised collection.
Datamining : Refers to extracting or mining knowledge from large amounts of data Applications : Market Analysis Fraud Detection Customer Retention Production.
Data Warehouse.
Chapter 9 Designing Databases
Introduction lecture1.
Introduction to Database Management System
MANAGING DATA RESOURCES
Database Fundamentals
Chapter 9 Database and Information Management.
Database Fundamentals(continuing)
Relational Database Model
CHAPTER SIX OVERVIEW SECTION 6.1 – DATABASE FUNDAMENTALS
Chapter 9: Database Systems
MANAGING DATA RESOURCES
Chapter 1: The Database Environment
Accounting Information Systems 9th Edition
Chapter 9: Database Systems
Chapter 17 Designing Databases
Presentation transcript:

Chapter 9: Database Systems Computer Science: An Overview Tenth Edition by J. Glenn Brookshear Adapted from slides modified fby Marie desJardins UMBC’s CMSC 100, Fall 2011

Chapter 9: Database Systems 9.1 Database Fundamentals 9.2 The Relational Model 9.3 Object-Oriented Databases 9.4 Maintaining Database Integrity 9.5 Traditional File Structures 9.6 Data Mining 9.7 Social Impact of Database Technology

Database A collection of data that is multidimensional in the sense that internal links between its entries make the information accessible from a variety of perspectives

Figure 9.1 A file versus a database organization

Figure 9.2 The conceptual layers of a database implementation

Schemas Schema: A description of the structure of an entire database, used by database software to maintain the database Subschema: A description of only that portion of the database pertinent to a particular user’s needs, used to prevent sensitive data from being accessed by unauthorized personnel

Database Management Systems Database Management System (DBMS): A software layer that manipulates a database in response to requests from applications Distributed Database: A database stored on multiple machines DBMS will mask this organizational detail from its users Data Independence: The ability to change the organization of a database without changing the application software that uses it

Database Models Database Model: A conceptual view of a database Relational database model Object-oriented database model

Relational Database Model Relation: A rectangular table Attribute: A column in the table Tuple: A row in the table

Figure 9.3 A relation containing employee information

Relational Design Avoid multiple concepts within one relation Can lead to redundant data Deleting a tuple could also delete necessary but unrelated information

Improving a Relational Design Decomposition: Dividing the columns of a relation into two or more relations, duplicating those columns necessary to maintain relationships Lossless or nonloss decomposition: A “correct” decomposition that does not lose any information

Figure 9.4 A relation containing redundancy

Figure 9.5 An employee database consisting of three relations

Figure 9.6 Finding the departments in which employee 23Y34 has worked

Figure 9.7 A relation and a proposed decomposition

Relational Operations Select: Choose rows Project: Choose columns Join: Assemble information from two or more relations

Figure 9.8 The SELECT operation

Figure 9.9 The PROJECT operation

Figure 9.10 The JOIN operation

Figure 9.11 Another example of the JOIN operation

Figure 9.12 An application of the JOIN operation

Maintaining Database Integrity Transaction: A sequence of operations that must all happen together Example: transferring money between bank accounts Transaction log: A non-volatile record of each transaction’s activities, built before the transaction is allowed to execute Commit point: The point at which a transaction has been recorded in the log Roll-back: The process of undoing a transaction

Maintaining database integrity (continued) Simultaneous access problems Incorrect summary problem Lost update problem Locking = preventing others from accessing data being used by a transaction Shared lock: used when reading data Exclusive lock: used when altering data

Hashing EC Each record has a key field The storage space is divided into buckets A hash function computes a bucket number for each key value Each record is stored in the bucket corresponding to the hash of its key

Figure 9.18 Hashing the key field value 25X3Z to one of 41 buckets EC

Figure 9.19 The rudiments of a hashing system EC

Collisions in Hashing EC Collision: The case of two keys hashing to the same bucket Clustering problem: Poorly designed hashing function can have uneven distribution of keys into buckets Collision also becomes a problem when there aren’t enough buckets (probability greatly increases as load factor (% of buckets filled) approaches 75%) Solution: somewhere between 50% and 75% load factor, increase number of buckets and rehash all data

Data Mining Data Mining: The area of computer science that deals with discovering patterns in collections of data Data warehouse: A static data collection to be mined Data cube: Data presented from many perspectives to enable mining

Data Mining Strategies Class description Class discrimination Cluster analysis Association analysis Outlier analysis Sequential pattern analysis

Social Impact of Database Technology Problems Massive amounts of personal data are being collected Often without knowledge or meaningful consent of affected people Data merging produces new, more invasive information Errors are widely disseminated and hard to correct Remedies Existing legal remedies often difficult to apply Negative publicity may be more effective