Chapter 4 Database Processing. Agenda Purpose of Database Terminology Components of Database System Multi-user Processing Database Design Entity-relationship.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
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.
Information Systems Today: Managing in the Digital World
Chapter 6 Data Design.
Using MIS 2e Chapter 5: Database Processing David Kroenke
Database Systems: Design, Implementation, and Management Tenth Edition
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Introduction to Databases
Chapter 5 Database Processing.
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
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.
File Systems and Databases
Database Processing Chapter 4.
© 2007 Prentice Hall, Inc.1 Using Management Information Systems David Kroenke Database Processing Chapter 4.
CSCI 150 Database Applications Chapter 1 – Getting Started.
1 Introduction The Database Environment. 2 Web Links Google General Database Search Database News Access Forums Google Database Books O’Reilly Books Oracle.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Review Exam 1 Chapters
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Getting Started Chapter One DATABASE CONCEPTS, 7th Edition
CSC 2720 Building Web Applications Database and SQL.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Chapter 5 Database Processing.
David Kroenke Database Processing Chapter 4 © 2007 Prentice Hall, Inc. 1.
Using MIS 4e Chapter 5 Database Processing
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
Introduction to Accounting Information Systems
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
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.
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,
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.
Database Management System (DBMS) an Introduction DeSiaMore 1.
Getting Started Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
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.
Information Systems Today: Managing in the Digital World TB3-1 3 Technology Briefing Database Management “Modern organizations are said to be drowning.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Chapter 3: Relational Databases
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Database Processing Chapter "No, Drew, You Don’t Know Anything About Creating Queries.” Copyright © 2015 Pearson Education, Inc. Operational database.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology.
Application Extension 5a
Client/Server Databases and the Oracle 10g Relational Database
Information Systems Today: Managing in the Digital World
Chapter 4 Relational Databases
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 4 Database Processing

Agenda Purpose of Database Terminology Components of Database System Multi-user Processing Database Design Entity-relationship Model Database Administration Database Security Discussion, Design, and Case Study

Purpose of Database to keep track of things that involve more than one theme

Terminology - I Database –A collection of self-describing and integrated records The hierarchy of data elements –Bytes – columns – fields – rows (records) – tables (files or relations) – database Database –A collection of tables plus relationships (in terms of) among rows (records) in these tables Relationships –Primary key: a column or group of columns to identify a unique row in a table –Foreign key: a non-key column or field in one table that links to a primary key in another table

Hierarchy of Data Elements

Examples of Relationships Among Rows

Terminology - II Relational database –Tables –Relationship using primary key and foreign key Metadata –The structure of the database –The data describe the data Field name, data type, description, property

Metadata Example (in Access)

Components of a Database

Components of Database System Database management system (DBMS): software –To create tables, relationships, and other structure –To process (read, insert, modify, or delete) data –To produce forms, reports, and queries through database application –To administer (security, back up, recover, clean up, and enhance performance) a database Structured Query Language (SQL) –An international standard language for processing a database Product types –Enterprise DBMS: IBM (DB2), Microsoft (SQL Server), Oracle Corporation (Oracle), Open-source (MySQL) –Personnel DBMS: Microsoft (Access) for 15 or less users

Components of a Database Application System

Use of Multiple Database Applications

Four Application Programs on Web Server Computer

Multi-user Processing More than one user accessing a particular database table at same time Lost-update problem Lock

Database Design Create data model –Logical representation of database based on users view on the business environment (users requirements) –Data and relationships that users want to track Create database design –The process of converting a data model into tables, relationships, and data constraints –Normalization: the process of converting poorly structured tables into two or more well-structured tables to avoid data integrity problems Users reveiw Create database

Entity Relationship Model - I Components –Entity: physical object (rectangular) –Attributes: characteristics of the entity –Primary key: identifier –Relationship: primary key and foreign key (line) Normalization –The process of converting poorly structured tables into two or more well-structured tables –Every table describe a single topic or theme –To avoid data integrity problems –To avoid generating incorrect and inconsistent information –Trade off between performance –Normal form

Entity Relationship Model - II Entity-relationship diagram –Entity: rectangular –Relationship: line One-to-one: 1:1 One-to-many (crows foot): 1:N Many-to-many: N:M Many-to-many relationship has to be changed to two 1:N relationship via an intersection table Maximum cardinality Minimum cardinality

Database Development Process

Example Relationships Showing Minimum Cardinalities

Transforming a Data Model into a Database Design

Representing a 1:N Relationship - I

Representing a 1:N Relationship - II

Representing a N:M Relationship

Database Administration - I Functions –Manage the development, operation, and maintenance of a database to achieve the organizations objectives –Balance conflicting goals to protect the database and maximize its availability for authorized use DBA –Database administrator or office of database administration –an auditor, a consultant, sometimes a policeman, and a diplomat working as a liaison between the users and professional developers

Database Administration - II DBA responsibilities –Database development –Database operation –Backup and recovery –Adopt new database change requirements –Create a steering committee consisting of key users Steering committee –Community-wide decisions regarding the development, use, and maintenance of the database –Community-wide policies for the processing of the database –Processing rights (minimum)

Database Security Firewall OS and DBMS patches Physical access security User accounts, roles, and minimum permission Processing and error logs Security emergency plan

Discussion Ethics (81a-b) –What should the company do to avoid the situation at first place? –What should the company do to properly handle Kellys case –What should Kelly do to avoid the stated consequence after querying the database? –What could Kelly do to save his career? Opposing forces (97a-b) –What should the DBA of car dealer do to convince every salesperson to build and use a solid sales information database? Reflections (101a-b) –What should the DBA of any organization to handle the changing requirements for a new database? –What should the DBA of any organization to handle the new requirements for a existing database?

Relational Database Design Given the following entities and their attributes –Buyer (BuyerID, BuyerName) –Owner (OwnerID, OwnerName) –Property (PropertyID, PropertyAddres, OwnerID) –Agent (AgentID, AgentName) –Sales (SalesID, BuyerID, OwnerID, PropertyID, AgentID, Price, Date) Design a relational database –Create primary key for every entity and the necessary foreign key –Create an entity-relationship diagram

Case Study Assignment 22 (105) Case 4-1 ( ): questions 1, 4, and 7 (add aircraft for 7) Case 4-2 ( ): questions 1 and 2

Points to Remember Purpose of Database Terminology Components of Database System Multi-user Processing Database Design Entity-relationship Model Database Administration Database Security Discussion, Design, and Case Study