Chapter 12 File Processing and Data Management Concepts

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Chapter 10: Designing Databases
Technology Guide 3 Data and Database T3-1. IT for Management Prof. Efraim Turban T3-2 File Management Hierarchy of data for a computer-based file Record.
Foundations of Relational Implementation n Defining Relational Data n Relational Data Manipulation n Relational Algebra.
Relational Databases Chapter 4.
Chapter Information Systems Database Management.
1 Basic DB Terms Data: Meaningful facts, text, graphics, images, sound, video segments –A collection of individual responses from a marketing research.
Organizing Data & Information
Introduction to Databases Transparencies
Modern Systems Analysis and Design Third Edition
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.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Introduction to Accounting Information Systems
Database Management Systems Accounting Information Systems, 5 th edition James A. Hall COPYRIGHT © 2007 Thomson South-Western, a part of The Thomson Corporation.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Technology Guide 3 Data & Databases.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Concepts and Terminology Introduction to Database.
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:
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Accounting Information Systems 9 th Edition Marshall.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
Announcements. Data Management Chapter 12 Traditional File Approach  Structure Field  Record  File  Fixed All records have common fields, and a field.
1 Database Concepts 2 Definition of a Database An organized Collection Of related records.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Data Resource Management.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Chapter 5 Data Resource Management. 2 I. Why do organizations store data?  Data resources must be structured and organized in some logical manner so.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
 2001 Prentice Hall Business Publishing, Accounting Information Systems, 8/E, Bodnar/Hopwood A field may be a single character or number, or it.
Chapter 9 Database Systems Introduction to CS 1 st Semester, 2014 Sanghyun Park.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Chapter 10 Database Management. Data and Information How are data and information related? p Fig Next processing data stored on disk Step.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” MODULE 5 : Part 1 INTRODUCTION TO DATABASE.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Introduction to Information Technology Turban, Rainer and Potter John Wiley & Sons, Inc. Copyright 2005.
Chapter 3: Relational Databases
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
Data Resource Management Lecture 8. Traditional File Processing Data are organized, stored, and processed in independent files of data records In traditional.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Intro to MIS – MGS351 Databases and Data Warehouses
Chapter 9 Database Systems
Introduction to Information Technology
Chapter 12 Information Systems.
Data Resource Management
Modern Systems Analysis and Design Third Edition
Chapter 4 Relational Databases
Databases and Data Warehouses Chapter 3
MANAGING DATA RESOURCES
Chapter 5 Data Resource Management.
Databases and Structured Files: What is a database?
The Relational Database Model
Accounting Information Systems 9th Edition
Presentation transcript:

Chapter 12 File Processing and Data Management Concepts

Presentation Outline Terminology Database Technology The Architecture of a Database Management System (DBMS) The Database Administrator

Fixed vs. Variable Length Records I. Terminology Field Data Occurrences Fixed vs. Variable Length Records Record Key Sort Keys

A. Field A field is the smallest block of data that will be stored and retrieved in the information system. Other names for field include data item, attribute, or element. Field 1 Field 2

A specific set of data values for a record in a file. B. Data Occurrences A specific set of data values for a record in a file. 1 2 3 4 5 The above table contains 5 occurrences of account records for the general ledger account file.

C. Fixed vs. Variable Length Records Fixed Length Records Both the number of fields and the length of each field are fixed. Strength: Easier to manipulate records. Weakness: Must accommodate maximum sizes. Variable Length Records Both the number of fields and the length of each field are variable. (See Fig. 15-1 on p. 603) Strength: Less waste of memory when maximum sizes do not have to be accomodated. Weakness: Record manipulation is more difficult.

D. Record Key 1110 1500 2105 2110 A record key is a field or combination of fields that uniquely identifies a particular record in a file.

E. Sort Keys Last Name First Name Age Adams Tom 25 Jones Alisa 36 Primary sort key – The first field used to sort the data occurrences in a record set. Secondary sort key – A field used to determine relative position among a set of data occurrences in a record set. Tertiary sort key – Additional fields beyond primary and secondary sort keys that are required to uniquely identify data occurrences in a record set. Last Name First Name Age Adams Tom 25 Jones Alisa 36 Julie 19 21 Young Sam 22

II. Database Technology The Problem of Redundancy The Components of a Database

A. The Problem of Redundancy That is not what we show per our records. Redundancy occurs when different areas of an organization use the information system to store the same information in more than one place. Results in update anomaly.

B. The Components of a Database Management System Data Description Language (DDL) Data Manipulation Language (DML) Data Query Language (DQL)

1. Data Description Language (DDL) Defines the logical structure of the database (known as the schema). Defines the following: Name of data fields. Type of data (numeric, alphabetic, etc.) Number of positions (length of field). May also define subschema (i.e., individual user views)

2. Data Manipulation Language (DML) Pull a trial balance. The DML consists of the commands for updating, editing, manipulating, and extracting data. Structured query language (SQL) is a common DML in relational settings. Structure Query Language (SQL)

3. Data Query Language Query by Example (QBE) A data query language is a user friendly language or interface that allows the user to request information by simply filling in blanks. Represents a special type of DML.

III. The Architecture of a Database Management System (DBMS) The Database Architecture The Conceptual Architecture and Entity-Relationship (ER) Diagrams Logical Data Structures The Physical Structure

A. The Database Architecture Database contents Uses of database Desired reports Information to be viewed Conceptual Level Logical data structures: Tree Network Relational Logical Level Access Methods: Sequential Access Indexed Files Physical Level

B. The Conceptual Architecture and Entity-Relationship (ER) Diagrams Square boxes are used for entities (separate tables). Ellipses are used for attributes (table columns). Diamond shaped boxes depict relationships. PART_NO NAME COST PART STORED AT LOCATION WHSE ADDRESS

C. Logical Data Structures Tree or Hierarchical Structure Network Structures Relational Structure Selection Projection Join

1. Tree or Hierarchical Structure A parent record can have many children. However a child record can have only one parent. Can only model 1:1 (one-to-one) and 1:* (one-to-many) relationships. Commonly used with accounting data. Can only access data by going from a parent to child. Balance Sheet Assets Liabilities Equity Current Assets Current Liabilities Revenues Long-term Assets Long-term Liabilities Expenses

2. Network Structure Eliminates the distinction of parent and child records. A parent can have many children and a child can have many parents. Can model 1:1 (one-to-one), 1:* (one-to-many), and *:* (many-to-many) relationships. Must know the physical structure of the data in order to access it.

3. Relational Structure Relational databases organize and store data in two dimensional tables consisting of rows and columns. Relationships among tables are represented by common data values in different tables. Straight forward in terms of organizing and searching the data. Possesses ad hoc search capabilities.

3a. Selection Produces a horizontal subset (includes entire row) of a relation which satisfies a boolean predicate. Savings Table Name Acct # Balance John 123 35.75 Bill 205 3.95 Mary 707 7.95 Joe 127 4.05 (Savings) Balance < 5.00 Name Acct # Balance Bill 205 3.95 Joe 127 4.05

3b. Projection Constructs a vertical subset of a relation. The subset is obtained by selecting specified attributes and removing others. Savings Table Name Acct # Balance John 123 35.75 Bill 205 3.95 Mary 707 7.95 Joe 127 4.05 (Savings) Name Balance < 5.00 Name Bill Joe

3c. Join A join is used to combine 2 tables. The attribute used to join must be in both tables. Table R Table S A B C a1 b1 c1 a2 b2 c2 c3 a4 C D E c2 d1 e1 c3 d2 e3 e2 A B C D E a2 b2 c2 d1 e1 e2 c3 d2 e3 a4 R |X| S

D. The Physical Structure Sequential Access Indexed Files

1. Sequential Access Records can only be accessed in a predefined sequence. For example, if there are 100 records in a file, one must access the first 99 records before accessing the last record. Generally useful for batch processing when nearly all records must be accessed.

2. Indexed Files Any attribute can be extracted from the records in a primary file and used to build a new file whose purpose is to provide an index to the original file. First, the index is searched to find a specified value of an attribute such as an customer account number. Second, the disk addresses are used to directly retrieve the desired records See Fig. 12-13 on p. 427.

IV. The Database Administrator This is not quite what we need. The database administrator is a person who coordinates data management activities such as approving the physical contents and user views of the database.

Summary Fields and keys Three Components of a DBMS Three Types of Database Architecture The Database Administrator