Organizing Data Revision: pages 8-10, 31 Chapter 3.

Slides:



Advertisements
Similar presentations
Chapter Information Systems Database Management.
Advertisements

Chapter 10: Designing Databases
Relational Databases Chapter 4.
Chapter Information Systems Database Management.
ETEC 100 Information Technology
File Systems and Databases
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Introduction to Database. File Formats Comma delimited file –"s1","peter",3 –"s2","paul",2.5 –"s3","mary",3.5 –Demo: Excel – Data/Import Extended Markup.
11 3 / 12 CHAPTER Databases MIS105 Lec14 Irfan Ahmed Ilyas.
Normalization A337. A337 - Reed Smith2 Structure What is a database? ◦ Tables of information  Rows are referred to as records  Columns are referred.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 3: Data Modeling
Databases and Database Management Systems
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
DATA RESOURCE MANAGEMENT.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Logical Database Design Nazife Dimililer. II - Logical Database Design Two stages –Building and validating local logical model –Building and validating.
Copyright © 2016 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Using MIS 4e Chapter 5 Database Processing
1 Intro to Info Tech Database Management Systems Copyright 2003 by Janson Industries This presentation can be viewed on line at:
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
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
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
CS 474 Database Design and Application Terminology Jan 11, 2000.
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Architecture for a Database System
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
In this chapter, you learn about the following: ❑ Anomalies ❑ Dependency and determinants ❑ Normalization ❑ A layman’s method of understanding normalization.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
SQL Structured Query Language Programming Course.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
File Processing Concepts – Field – combination of 1 or more characters that is the smallest unit of data to be accessed – Record – group of related fields.
File Systems and Databases Lecture 1. Files and Databases File: A collection of records or documents dealing with one organization, person, area or subject.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
CS 1308 Computer Literacy and the Internet
Chapter 1 1 Lecture # 1 & 2 Chapter # 1 Databases and Database Users Muhammad Emran Database Systems.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
1 CSE 2337 Introduction to Data Management Textbook: Chapter 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.
Database Management Systems CS 420. Topics Outline 1. Introduction 2. HTML Review 3. VBScript 4. Access DBMS 5. Relational Database 6. Design Process.
A337 - Reed Smith1 Structure What is a database? –Table of information Rows are referred to as records Columns are referred to as fields Record identifier.
Intro to Access and Data Management. Announcements Chapter 5 – Thursday Entropy Registration Quiz Due Date Extended to Weds. Dreamspark Registration Questions?
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
IST Database Normalization Todd Bacastow IST 210.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Lecture 4: Logical Database Design and the Relational Model 1.
Data Resource Management Application Layer TPS A RCHITECTURE Data Layer Sales/MarketingHR Finance/Accounting Operations Spreadsheet Data MS Access Accounts.
The Database Concept and the Database Management System (DBMS) Databases.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Chapter 12 Information Systems.
Information Systems Database Management
Chapter 4 Relational Databases
Normalization A337.
Lecture 1 File Systems and Databases.
Presentation transcript:

Organizing Data Revision: pages 8-10, 31 Chapter 3

Revision: The components of an Information System are: ___________, ____________, ___________, ______________. To quote “a database is the heart of an Information System “, and “a comprehensive database is essential for the success of any Information System “ 2

3

Introduction: In any business data is accumulated. How does one store this data, so that it can be used efficiently? Consider the following data about Invoices and Customers: see next slide 4

A Table of data: InvoiceCustomerAmountPaymentNameAddress R CashNeneKwaMashu R CreditHlelaEshowe R CashHlelaEshowe R CashMfekaMtunzini R CreditMfekaMtunzini 5

Terminology: How many Files? Records? Fields? 6 InvoiceCustomerAmountPaymentNameAddress R CashNeneKwaMashu R CreditHlelaEshowe R CashHlelaEshowe R CashMfekaMtunzini R CreditMfekaMtunzini Field File Record

Data Hierarchy: A file consists of a group of related records A record is a group of related fields Now we can define a database: A database can consist of only a single file, but usually it is a group of related files 7

Slide 5: Can you foreseen any problems with the data? Consider the following data operations: Update, Insert, Delete Mfeka bought more products Hlela changes address 8

Can you spot the ‘mistakes’ or ANOMALIES? 9 InvoiceCustomerAmountPaymentNameAddress R CashNeneKwaMashu R CreditHlelaEshowe R CashHlelaEmpangeni R CashMfekaMtunzini R CreditMfekaMtunzini R CashMfecaMtunzinni

File Queries: What does Mfeka owes? What is the address when posting the bill to Hlela? Is customer ‘8000’ a new customer? 10

More problems: Anomalies also exists in different files: File systems File systems are maintained by programming code or instructions All of this will lead to the solution: creation of a database, using a DBMS: Database Management System See next slides: 11

File Systems: 12

File Contents: Customer- and Agent Files custNamecustPhoneagentName Tim Buthelezi Sandy Ndlovu 13 agentNameagentPhone…………….. Sandy Ndlovu

File System 14

15 Points to take notice of: Duplication of data leads to anomalies: Changing information in the Customer file and NOT in the Agent file leads to inconsistency that impact on the integrity of the data. Programmers interact DIRECTLY with the file, according to the STRUCTURE of the file. If the file organization changes, so must the software!

How do a DB solve these problems: File: Duplication of data Changes to software programs DB: Introduces the DBMS: Data is stored in ONLY one File The DBMS introduces data independence: The programmer do NOT need to know about data structures. The DBMS interact with the files 16

DBMS: See page 45, Exhibit 3.2 Also pages 50, 51 17

How to get rid of anomalies: Page 48: Normalization 1NF: Eliminate duplicated fields from the same table Create separate tables for each group of related data Identify each record with a unique field: the primary key 18

Each table MUST represents a SINGLE subject: 19 InvoiceCustomerAmountPaymentNameAddress R CashNeneKwaMashu R CreditHlelaEshowe R CashHlelaEshowe R CashMfekaMtunzini R CreditMfekaMtunzini

Two Tables: CustNoCustSurnameCustAddre ss 2000NeneKwaMashu 3000HlelaEshowe 9000MfekaMtunzini InvNoInvAmountInvPayment 1110R Cash 2220R Credit 3330R Cash 4440R Cash 5550R Credit 20

21 Creation of a DB: Create the LOGICAL view Know the tables/entities, Identify the attributes/field names, Identify a PK for EACH table Identify the relationship between entities.

22 Creation of a DB: Logical view:

23

Relationships: 1 : 1 1 : M or M : 1 M : N Example: A person has a passport How many subjects or tables do you identify? 24

A person has a passport 25

A passport belongs to a person 26

27

Can you determine the type of relationship? 28

Example of M : N A student registers for many courses A course is taken by many students Or: Students take many courses Note: A relationship is bi-directional 29

30

Queries? What is the phone number of customer John Smith? Who is the customer who rented copy number ? What is the phone number of the customer who rented ‘The Ring II’? 31

Summary We could ONLY answer the above questions because the data was well organized. Organization starts with good database design. Database software make it possible to handle such questions or queries. 32

33 Implementation: Designing Step 1: Data is in 1NF Designing Step 2: Determine the relationship 1 : 1 1 : M M : N

Implementation cont. Designing Step 3: Assign data types to each field or attribute Text Number (calculations) Date Logical Currency 34

Implementation: Design Step 4: Create a data base SCHEMA representing all the information of the previous steps. See next slide 35

Database Schema Use MS Word 36

Relational Data Model 37

38 Populate: Insert the values Put the PK of the ONE side on the MANY side, now as a FK Answer queries: Selection Project Join QBE versus SQL