File and Database Design; Logic Modeling Class 24.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Physical DataBase Design
Introduction to Databases
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 The Basic (Flat) Relational Model.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
File Systems and Databases
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Physical Database Monitoring and Tuning the Operational System.
Modern Systems Analysis and Design Third Edition
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
System Analysis and Design
Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Databases Chapter 11.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Chapter 9 Structuring System Requirements: Logic Modeling
The Relational Database Model
MBI 630: Class 6 Logic Modeling 9/7/2015. Class 6: Logic Modeling Logic Modeling Broadway Entertainment Co. Inc., Case –Group Discussion (Handout) –Logic.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Concepts and Terminology Introduction to Database.
TM 7-1 Copyright © 1999 Addison Wesley Longman, Inc. Physical Database Design.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 12 Designing Databases 12.1 COSC4406: Software Engineering.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
DATABASE MGMT SYSTEM (BCS 1423) Chapter 5: Methodology – Conceptual Database Design.
Chapter 12: Designing Databases
M1G Introduction to Database Development 2. Creating a Database.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Database Application Design and Data Integrity AIMS 3710 R. Nakatsu.
Chapter 10 Designing the Files and Databases. SAD/CHAPTER 102 Learning Objectives Discuss the conversion from a logical data model to a physical database.
Methodology – Physical Database Design for Relational Databases.
Relational Theory and Design
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.
CSE314 Database Systems Lecture 3 The Relational Data Model and Relational Database Constraints Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson.
ITEC 3220A Using and Designing Database Systems
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
MBI 630: Week 9 Conceptual Data Modeling and Designing Database 6/10/2016.
1 Agenda TMA02 M876 Block 4. 2 Model of database development data requirements conceptual data model logical schema schema and database establishing requirements.
Information Systems Today: Managing in the Digital World
Chapter 9 Structuring System Requirements: Logic Modeling
Modern Systems Analysis and Design Third Edition
CSCI-100 Introduction to Computing
Chapter 4 Relational Databases
Chapter 9 Structuring System Requirements: Logic Modeling
File Systems and Databases
Physical Database Design
Chapter 9 Structuring System Requirements: Logic Modeling
Chapter 9 Structuring System Requirements: Logic Modeling
Data Model.
Database solutions Chosen aspects of the relational model Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology.
Chapter 17 Designing Databases
Chapter 9 Structuring System Requirements: Logic Modeling
Chapter 9 Structuring System Requirements: Logic Modeling
Database Dr. Roueida Mohammed.
Information system analysis and design
Presentation transcript:

File and Database Design; Logic Modeling Class 24

SDLC Project Identification & Selection Project Initiation & Planning Analysis Logical Design Physical Design *** Implementation Maintenance

Databases File Systems Databases Hierarchical Database Model Network Database Model Relational Database Model Object Oriented Database Model

File Systems Each new application is designed with its own set of files. Problems: Changes in files require changes to programs. Uncontrolled redundancy Inconsistent data Limited data sharing

Database Approach Negatives Need new, specialized personnel Need for explicit backups Interference due to shared data Organizational conflict Postives Minimal data redundancy Consistent data Integration of data Sharing of data Data independence Ease of application development Reduced program maintenance

Designing a relational database Create a table (file) for each entity type. Choose a primary key for each table. Choose appropriate data types and value restrictions for each field. Create new tables to represent many-to- many relationships. Add foreign keys to represent one-to-many relationships. Define referential integrity constraints. Evaluate schema quality and make necessary improvements.

What we’re looking at Databases, Tables (files, entities), Records, Fields (attributes) How we’ll define above in the Data Dictionary

Tables Each entity on your ER diagram will become a table in your database.

Records A row in the table. A group of fields (or attributes) stored in adjacent memory locations and retrieved together as a unit.

Fields May also be called an attribute or data element. All fields (or attributes on your ER diagram) will be defined in the Data Dictionary.

Fields Name Data type Primary key(s) Data integrity Handling missing data Ownership

Data Integrity Default value Picture control Range controls Null Value controls

Data Dictionary The repository of all data definitions for all organizational applications.

What we’ll show in a DD: Table (file) (entity) name All fields (attributes) within the table. For each field: Name Note if primary key Definition/description of field Data type (page 352, or whether its numeric or character plus the length)

TABLE: PIG Primary Key Attribute Name Attribute DefinitionAttribute Type * PigIDThe unique identifier of the pig 5 numeric characters PigNameThe name of the pig15 alpha characters PigWeightThe weight, in pounds and ounces of the pig 6 numeric characters, with 2 numbers after the decimal PigGenderThe gender of the pig – either male or female 1 alpha character, M or F are allowed

Logic Modeling Knowing what’s going on inside the programs. What is the logic to create the reports, calculated fields? We’ll show logic modeling through use of decision trees and decision tables.

Decision Tables A matrix representation of the logic of a decision, which specifies the possible conditions for the decision and the resulting actions. Condition stubs Action stubs Rules

Steps in creating Decision tables: Name all conditions and the values each condition can assume. Name all possible actions that can occur. List all possible rules based on every possible combination of conditions. Define the actions for each rule. Simplify the decision table by removing “indifferent conditions”.

Examples!

Decision Trees A graphical representation of a decision situation in which decision situation points (nodes) are connected together by arcs (one for each alternative on a decision) and terminate in ovals (the action that is the result of all of the decisions made on the path leading to the oval

Decision trees Often used for statistical reasons – for calculating probabilities and making choices based on probabilities. Used more often for “simpler” problems.

Examples!