File Processing and Data

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Variations of the Turing Machine
1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senns Information Technology, 3 rd Edition Chapter 7 Enterprise Databases.
3rd Annual Plex/2E Worldwide Users Conference 13A Batch Processing in 2E Jeffrey A. Welsh, STAR BASE Consulting, Inc. September 20, 2007.
Process Description and Control
AP STUDY SESSION 2.
1
Flexible Budgets, Variances, and Management Control: II
Chapter 1: The Database Environment
Chapter 7 System Models.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 4 Computing Platforms.
Processes and Operating Systems
Relational Database and Data Modeling
David Burdett May 11, 2004 Package Binding for WS CDL.
Prepared by: Workforce Enterprise Services For: The Illinois Department of Commerce and Economic Opportunity Bureau of Workforce Development ENTRY OF EMPLOYER.
Local Customization Chapter 2. Local Customization 2-2 Objectives Customization Considerations Types of Data Elements Location for Locally Defined Data.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
Custom Services and Training Provider Details Chapter 4.
CALENDAR.
Chapter 6 File Systems 6.1 Files 6.2 Directories
1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
1.
Break Time Remaining 10:00.
File Management in Operating System
Turing Machines.
Table 12.1: Cash Flows to a Cash and Carry Trading Strategy.
Information Systems Today: Managing in the Digital World
Database Performance Tuning and Query Optimization
PP Test Review Sections 6-1 to 6-6
Chapter 10: Applications of Arrays and the class vector
Chapter Information Systems Database Management.
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
Chapter 6 Data Design.
Outline Minimum Spanning Tree Maximal Flow Algorithm LP formulation 1.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 24.1 Test-Driving the Ticket Information Application.
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
Chapter 6 File Systems 6.1 Files 6.2 Directories
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
GIS Lecture 8 Spatial Data Processing.
 Copyright I/O International, 2013 Visit us at: A Feature Within from Item Class User Friendly Maintenance  Copyright.
Adding Up In Chunks.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
GEtServices Services Training For Suppliers Requests/Proposals.
: 3 00.
5 minutes.
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Systems Analysis and Design in a Changing World, Fifth Edition
Speak Up for Safety Dr. Susan Strauss Harassment & Bullying Consultant November 9, 2012.
1 Titre de la diapositive SDMO Industries – Training Département MICS KERYS 09- MICS KERYS – WEBSITE.
Chapter 12: Designing Databases
Essential Cell Biology
Converting a Fraction to %
Clock will move after 1 minute
PSSA Preparation.
Essential Cell Biology
14 Databases Foundations of Computer Science ã Cengage Learning.
Physics for Scientists & Engineers, 3rd Edition
Energy Generation in Mitochondria and Chlorplasts
Select a time to count down from the clock above
Import Tracking and Landed Cost Processing An Enhancement For AS/400 DMAS from  Copyright I/O International, 2001, 2005, 2008, 2012 Skip Intro Version.
Management Information Systems, 10/e
Chapter 12 File Processing and Data Management Concepts
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
 2001 Prentice Hall Business Publishing, Accounting Information Systems, 8/E, Bodnar/Hopwood A field may be a single character or number, or it.
Presentation transcript:

File Processing and Data Management Concepts Chapter 12

Define the basic terms used in database technology. Learning Objective 1 Define the basic terms used in database technology.

Introductory Terminology Field These are used interchangeably to denote the smallest block of data that will be stored and retrieved. Data items Attribute Elements

Introductory Terminology A field may be a single character or number, or it may be composed of many characters or numbers. Customer name Employee social security number Purchase order number Customer account number

Introductory Terminology Logical grouping of fields are called records. An employee A customer A vendor An invoice

Data Occurrences Ocurrences = Instances A record occurrence is a specific set of data values for the record.

Data Occurrences For the record EMPLOYEE (NAME, NUMBER, AGE) we might have the occurrence EMPLOYEE (Brown, 111222333, 33)

Fixed- and Variable-Length Records In a fixed-length record, both the number of fields and the length (character size) of each field are fixed. In variable-length records, the width of the field can be adjusted to each data occurrence. A trailer record is an extension of a master record.

Several Suppliers and Warehouses Example PART_NO PNAME TYPE COST PVEND – the name of the vendor or supplier WARHSE – where the part is stored LOC – the last two digits of the zip code

One Storage Location Example PART (PART_NO, PNAME, TYPE, COST, PVEND #1, WARHSE #1, LOC#1, PVEND #2, WARHSE #2, LOC#2)

Repeated Groups Repeated groups are related groups of fields that repeat themselves in variable-length records. Segments Groups Nodes PART, SUPPLIER, and LOCATION can be written as follows: PART (PART_NO, PNAME, TYPE, COST)

Tree Diagram for PART, SUPPLIER and LOCATION

Record Key and File Sequence A key or record key is a data item or combination of data items that uniquely identifies a particular record in a file. Primary sort key Secondary sort key Tertiary sort keys Relative random order

Identify the three levels of database architecture. Learning Objective 2 Identify the three levels of database architecture.

Database Management Systems and Their Architecture Database contents Uses of database Desired reports Information to be reviewed Conceptual level

Database Management Systems and Their Architecture Logical data structures: Tree (hierarchical) Network Relational Logical level

Database Management Systems and Their Architecture Access methods: Sequential Indexed-sequential Direct Physical level

Conceptual Architecture The Entity-Relationship (E-R) data model is a conceptual model for depicting the relationships between segments in a database. "Entity" instead of segment Attribute refers to individual fields or data items.

Conceptual Architecture The object-oriented modeling technique (OMT) views the components of the system being modeled as object classes. Object class corresponds to a segment. Object corresponds to a particular instance. Inheritance

Example of Object-Oriented Data Modeling Technique PLANT_EQUIPMENT ACCOUNT_NO COST DEPRECIATION HEAVY_EQUIPMENT MAINTENANCE_FREQ DATE_PURCHASED HAND_TOOLS USAGE

Compare and contrast the different logical models of databases. Learning Objective 3 Compare and contrast the different logical models of databases.

Logical Data Structures The relationships that exist between the segments in the database are determined by the logical data structure, also called the schema or database model.

Logical Data Structures What are the three major models of logical data structure? 1. Tree or hierarchical structures 2. Network structures 3. Relational models

Logical Data Structures Tree (hierarchical) model (4 levels and 13 nodes) A B C D E F G H I J K L M

Logical Data Structures Network model (3 levels and 11 nodes) A B C D E F G H I J K

Logical Data Structures Both trees and networks are implemented with imbedded pointer fields.

Implementing Tree and Network Structures In a list organization, each record contains one or more pointers (fields) indicating the address of the next logical record with the same attribute(s). A ring structure differs from a list in that the last record in the ring list points back to the first record.

Implementing Tree and Network Structures What is a multiple ring structure? In this type of structure several rings pass through individual records.

List Structure Location of first record Attribute Records Index  1 2 3 4 5 Red Blue Index Pointer field to next record End of list indicator

Ring Structure Location of first record Attribute Index Pointer field 2 Va 3 Ky Pointer field to next record Pointer field to first record Records 1 2 4 3 4 5 5 2

Relational Data Structures What is the relational model? It is a logical data structure that views the database as a collection of two-dimensional tables. There are no complicated pointers or lists.

Relational Data Structures Relational algebra Normal forms Normalization

Relational Data Structures What are the three normal forms? First normal form Second normal form Third normal form

Explain the different methods Learning Objective 4 Explain the different methods of accessing files.

Database Architecture: The Physical Level Sequentially accessed files Indexed files Directly accessed files

Sequentially Accessed Files In a sequential access file, records can only be accessed in their predefined sequence. Sequential file organization is useful when batch processing is required.

Indexed Files An index file is one where an attribute has been extracted from the records and used to build a new file whose purpose is to provide an index to the original file. One important type of indexed file is an indexed-sequential file.

Indexed Files An indexed-sequential file is a sequential file that is stored on a DASD and is both indexed and physically sorted on the same field. These files are frequently referred to as ISAM files.

Indexed Files An ISAM file structurally consists of three distinct areas: The index The prime area The overflow area How would a computer locate a file record whose key is 1002?

Structure of an ISAM File Highest key Track index address Master Index 1500 0300 Track address Track Index Track address 1005 0301 0300 Highest key on track Prime Area Key Data Track address 1002 -------- Record found 0301

Directly Accessed Files Direct-access files allow individual records to be almost instantly retrieved without the use of an index. Each record is assigned to a storage location that bears some relationship to the record’s key values. Most direct-access file systems convert a key to a storage location address.

Use of a Direct-Access File Processing logic flowchart: Data records Randomizing computation (÷ 7) Add remainder to displacement address (10) File storage area

Use of a Direct-Access File File loading illustration: Remainder after division by seven Displacement factor (initial address of file area) Key Record storage address 1 3 4 10 15 17 11 22 2 13 14 + =  Overflow

Use of a Direct-Access File Storage area contents after loading: Range of randomizing computation Storage allocated for overflow records … Record 1 KEY 15* Record 2 KEY 17 Record 3 KEY 11 Record 4 KEY 22 Contents Address 10 11 12 13 14 15 16 17 18 Overflow indicator

Economic Relations between File Organization Techniques The basic economics of file processing are largely determined by the activity ratio. What is the activity ratio? It is the number of accessed records divided by the number of records in the file. The second economic consideration concerns response time.

Economic Relations between File Organization Techniques What is response time? It is the length of time the user must wait for the system to complete an operation. Response time is affected by the physical access time. Another factor that can affect response time is how data records are physically distributed on the disk.

Learning Objectives 5 and 6 Explain the benefits of database management systems. Describe the considerations that are appropriate to the design of computer-based files and databases.

Database Management Systems and Databases in Practice Database Management Systems (DBMS) are computer programs that enable a user to create and update files, to select and retrieve data, and to generate various outputs and reports. All DBMS contain three common attributes for managing and organizing data.

Database Management Systems and Databases in Practice What are these attributes? Data description language (DDL) Data manipulation language (DML) Data query language (DQL)

Why Database Management Systems are Needed DBMS integrate, standardize, and provide security for various accounting applications. In the absence of integration, each type of accounting application such as sales, payroll, and receivables will maintain separate, independent data files and computer programs.

Database Management Concepts Independent files: Application One X Y B A Application Two X Y C D

Database Management Concepts X Y A B C D X Y A B Database dictionary and access codes Database system Logical file 1 Application one Data manipulation routines D A Y X X Y C D Logical file 3 Security screened inquiry file Logical file 2 Application two

Database Documentation and Administration Database dictionaries are used both alone and with DBMS to centralize, document, control, and coordinate the use of data within an organization. The data dictionary is simply another file, sort of file of files, whose record occurrences consist of data item descriptions.

Data Dictionary Format Items in a data dictionary occurrence: Specifications Name Definition Aliases Characteristics Size Range of values Encoding Editing data Utilization Owner Where used Security code Last update

End of Chapter 12