Common Field Types Primary Key Descriptive Fields Foreign Key.

Slides:



Advertisements
Similar presentations
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Advertisements

Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Physical DataBase Design
Copyright © by Royal Institute of Information Technology Introduction To Structured Query Language (SQL) 1.
Analyzing Systems Using Data Dictionaries Systems Analysis and Design, 7e Kendall & Kendall 8 © 2008 Pearson Prentice Hall.
Data Dictionary What does “Backordered item” mean? What does “New Customer info.” contain? How does the “account receivable report” look like?
File Management Chapter 12. File Management A file is a named entity used to save results from a program or provide data to a program. Access control.
Monday, 08 June 2015Dr. Mohamed Osman1 What is Database Administration A high level function (technical Function) that is responsible for ► physical DB.
Advance Database System
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Key.
9/26/2000SIMS 257: Database Management Physical Database Design University of California, Berkeley School of Information Management and Systems SIMS 257:
Chapter 12 File Management
Introduction to Structured Query Language (SQL)
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
METU Department of Computer Eng Ceng 302 Introduction to DBMS Disk Storage, Basic File Structures, and Hashing by Pinar Senkul resources: mostly froom.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 13 Disk Storage, Basic File Structures, and Hashing.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
File Management.
Introduction to Structured Query Language (SQL)
Oracle Data Definition Language (DDL)
Objectives Learn what a file system does
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor Ms. Arwa.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 17 Disk Storage, Basic File Structures, and Hashing.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Computers Data Representation Chapter 3, SA. Data Representation and Processing Data and information processors must be able to: Recognize external data.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
Designing a Database (Part I) -Identify all fields needed to produce the required information -Group related fields into tables -Determine Each Table’s.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Systems.
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
Object Persistence (Data Base) Design Chapter 13.
Object Persistence Design Chapter 13. Key Definitions Object persistence involves the selection of a storage format and optimization for performance.
Slide 1 Object Persistence Design Chapter 13 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 8 Analyzing Systems Using Data Dictionaries Systems Analysis and Design Kendall & Kendall Sixth Edition.
Indexed and Relative File Processing
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Database Management COP4540, SCS, FIU Physical Database Design (ch. 16 & ch. 3)
Database Application Design and Data Integrity AIMS 3710 R. Nakatsu.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Chapter 10 Designing the Files and Databases. SAD/CHAPTER 102 Learning Objectives Discuss the conversion from a logical data model to a physical database.
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
Session 1 Module 1: Introduction to Data Integrity
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
(Winter 2016) Instructor: Craig Duckett Lecture 13: Thursday, February 18 th Mere Mortals: Chap. 9 Summary, Team Work 1.
Understand Primary, Foreign, and Composite Keys Database Administration Fundamentals LESSON 4.2.
Data Resource Management Application Layer TPS A RCHITECTURE Data Layer Sales/MarketingHR Finance/Accounting Operations Spreadsheet Data MS Access Accounts.
Standards and Conventions
Storage and File Organization
Fundamentals of DBMS Notes-1.
Databases Chapter 9 Asfia Rahman.
Managing Tables, Data Integrity, Constraints by Adrienne Watt
Physical Database Design
Systems Analysis and Design
The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited)
ICT Database Lesson 2 Designing a Database.
SQL (Structured Query Language)
Presentation transcript:

Common Field Types Primary Key Descriptive Fields Foreign Key

Referential Integrity CUSTOMER (Customer ID, LastName, FirstName, Address, City, State, Zipcode) ORDER (Order ID, Customer ID, OrderDate)

Field Sequencing WRONG RIGHT

Fixed Length Record with Provision for Multiple Vendors Potentially Wasted Storage Space

Variable Length Record with Provision for Multiple Vendors Indicator for number of Vendor Fields

Blocking Factor Record 1 Sector Without Blocking Unused Storage Space Record 5 Record 4 Record 3 Record 2 Record bytes Sector With Blocking

Record Spanning Sector 1 Unused Storage Space 512 bytes Sector 2 Record 5 Record 4 Record 3 Record 2 Record 1 Record 6 Part 1 Record 10 Record 9 Record 8 Record 7 Record 6 Part 2 Record 11 Part 1

Sequential File Organization Physical Record Position in File Record Primary Key

Indexed File Organization Master Index Cylinder Index Track Index Track 2 Track 1 Track 3

Division Remainder Hashing Algorithm The general computation for determining a relative storage address slot for a particular record is: Relative slot address = 1 + Remainder of Primary Key Value _ Total Number of Reserved Address Slots Assume a PRODUCT file with 4, 500 unique records. The storage allocation for this file is equal to the number of records, therefore 4,500 storage slots will be needed on the media. The primary key for records in this file is the PRODUCT_ID field. The location for PRODUCT_ID can be computed as follows: Relative slot address = 1 + Remainder of _ = =

Network Database Architecture CUSTOMER FILE CUSTOMER FILE ORDER FILE ORDER FILE ORDERED_ITEM FILE ORDERED_ITEM FILE PRODUCT FILE PRODUCT FILE

Hierarchical Database Architecture STUDENT FILE STUDENT FILE ACADEMIC ACTIVITY FILE ACADEMIC ACTIVITY FILE FINANCIAL ACTIVITY FILE FINANCIAL ACTIVITY FILE CURRENT COURSE FILE CURRENT COURSE FILE

Relational Database Architecture RELATION A (Primary Key, Attribute 1, Attribute 2, Attribute 3, …) RELATION B (Primary Key, Foreign Key, Attribute 2, Attribute 3, …)

Object-Oriented Database Architecture Methods Object Class A Object Attributes Methods Object Class C Object Attributes Object Class B Object Attributes Methods

Common Data Type Definitions Data TypeDescription CHAR( n ) Alphanumeric character array with a maximum length of n. DECIMAL( m,n ) Signed numerical data with a total number of digits, m, and n number of digits to the right of the decimal point. VARCHAR Alphanumeric character array of variable length. INTEGER Signed whole number typically up to 11 digits in length SMALLINT Signed whole number up to 5 or 6 digits in length. DATE Date and time including appropriate validity checks (i.e not allowed). NUMBER Real number FLOAT( m,n ) Numerical data represented in scientific notation with a total number of digits, m, and n number of digits to the right of the decimal point. LOGICAL Binary data (i.e. TRUE/FALSE, YES/NO) LONG Variable length alphanumeric character array up to 2Gb LONGRAW Binary large object (BLOB) – no assumptions are made about format or content.

Common Field-Level Data Specifications Field SpecificationDescription Field Name Formal name for the field that uniquely identifies it from all others. Data Type Data type associated with this field. Units The unit of measure associated with this field (if applicable). Maintenance Rules for update, change, or deletion once data is entered (i.e. accounting transaction data cannot be changed once entered). Missing Data Procedure for handling missing data during multiple record processing (i.e. IGNORE, USE AVERAGE OF OTHER RECORDS). Check Digit Algorithm for calculate and verifying any check digits used in this field. Formula Algorithm for computing the value of this field (if calculated). Coding Coding conventions or acceptable abbreviations (i.e. 2-character abbreviation for State). Domain/Range Specification of range limits or default values for the field. Referential Integrity Specification for any referential integrity constraints for the field. Data Owner Identification of the responsible party for identifying the source and meaning of data contained in this field.

Common Domain Controls Domain ControlDescription Default Value Automatic entry of a value commonly found for this field unless other data is entered. Range Control Imposition of acceptable or relevant limits on either alphanumeric or numerical data. Picture Control Imposition of a specific pattern for the data being entered (i.e. DATE= mm/dd/yy or dd-mm-yyyy) Null Value Control Specification of whether a value in a particular field is required or optional.

Examples of Referential Integrity Deletion Rules Deletion RuleExplanation NO RESTRICTION Any record in the file may be deleted without regard to any other record or file. DELETE:CASCADE A deletion of a record must be automatically followed by the deletion of any matching records in any related files. DELETE:RESTRICT A deletion of a record in a table must be disallowed until any matching records are deleted from any related files. DELETE:SET NULL A deletion of a record must be automatically followed by setting any matching keys in a related file to NULL.

Common File Types File TypeDescription Master File Contains records related to business data that is relatively permanent. Once a record is entered, it tends to remain indefinitely. Data values may change (i.e. CUSTOMERS, PRODUCTS, INVOICES, SUPPLIERS). Transaction File Contains records that describe business events which can occur on a day- to-day basis. Data tends to have a limited useful life and are usually moved to an archival file after a predetermined period. Document File Contains stored copies of historical data in document form such that the overhead associated with recreated or reprocessing the document is eliminated. Table Look-Up File Contains reference data used to validate field values and to maintain consistency throughout the database (INCOME TAX TABLES, POSTAL CODE TABLES). Audit File Contains records of updates to other files in the database in case production files are damaged and require reconstruction. Data can be used with records in archival files to recover or restore damaged files or lost data. Archive File Contains records that have been deleted from active transaction files but require retention for an indefinite period. Work File Contains records stored temporarily or records containing intermediate results in a calculation process. Work files are usually created when needed and deleted upon completion of the task.

Volumetric Analysis FIELD SIZE (bytes) Invoice_ID7 Invoice_Date 8 Customer_ID 6 Product_ID9 Quantity3 Unit_Price6 Salesman_ID 4 Record Size 43 Record Overhead25% Total Record Size53.75 Total Annual Record Volume 67,000 Expected Table Volume 3,601,250 Expected Annual Growth Rate 16% Projected Table Volume – 4 years 5,621,176