Conceptual and Physical Database Design

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Chapter 6 Data Design.
Database Systems: Design, Implementation, and Management Tenth Edition
Introduction to Databases
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
File Systems and Databases
Physical Database Monitoring and Tuning the Operational System.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
System Analysis and Design
Systems Analysis and Design 9th Edition
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Systems Analysis and Design 8th Edition
File and Database Design SYS364. Today’s Agenda WHTSA DBMS, RDBMS, SQL A place for everything and everything in its place. Entity Relationship Diagrams.
Web-Enabled Decision Support Systems
Database Systems: Design, Implementation, and Management Ninth Edition
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
Concepts and Terminology Introduction to Database.
Object Persistence Design Chapter 13. Key Definitions Object persistence involves the selection of a storage format and optimization for performance.
Announcements. Data Management Chapter 12 Traditional File Approach  Structure Field  Record  File  Fixed All records have common fields, and a field.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Technology Guide 3 Data & Database. Agenda Definition File processing problems Database Selection criteria.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
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.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
ACCOUNTING INFORMATION SYSTEMS
Databases and DBMSs Todd S. Bacastow January
Database Systems: Design, Implementation, and Management Tenth Edition
Methodology Conceptual Databases Design
Relational Databases Chapter 4.
Databases – Exam questions
SEEM3430: Information Systems Analysis and Design
Methodology Conceptual Database Design
© 2014 by McGraw-Hill Education. This is proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
DESIGNING DATABASE APPLICATIONS
MIS 322 – Enterprise Business Process Analysis
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
CIS 207 The Relational Database Model
Physical Database Design for Relational Databases Step 3 – Step 8
Chapter 4 Relational Databases
Translation of ER-diagram into Relational Schema
Chapter 9 Designing Databases
Relational Model and ER Model: in a Nutshell
Basic Concepts in Data Management
SYSTEMS ANALYSIS & DESIGN
Normalization Referential Integrity
File Systems and Databases
Chapter 6 Normalization of Database Tables
Normalization A337.
בסיסי נתונים - מצגת ההרצאה - 1.
Relational Database Model
قـواعــــد الـبـيــانــات
Data Model.
Normalization Normalization theory is based on the observation that relations with certain properties are more effective in inserting, updating and deleting.
Accounting Information Systems 9th Edition
Methodology Conceptual Databases Design
Chapter 17 Designing Databases
Systems Analysis and Design, 7e Kendall & Kendall
Review #1 Intro stuff What is a database, 4 parts, 3 users, etc.
Relationships—Topics
Database Design Chapter 7.
Presentation transcript:

Conceptual and Physical Database Design Consideration of Implementation Details

Terminology Entity Field Attribute Record File Key field Primary Key Minimal Combination Candidate Nonkey field Foreign key Secondary key See “Designing Fields,” p. 307.

Entity Relationship Diagrams Entity - represented as a rectangle: Attribute – represented as an oval: Relationship - represented as a diamond:

ERDs (continued) Entity - singular noun Relationship - active verb one-to-one one-to-many many-to-many

ERDs (still more) Cardinality Modality pertains to number pertains to necessity of the entity’s participation in the relationship

Database Design Normalization Progressively restrictive forms Aim: flexibility and elimination of redundancy Note: We will use the standard notation to show tables.

First Normal Form (1NF) 1NF record contains no repeating groups may require use of combination key for primary key see examples in text

Second Normal Form (2NF) 2NF record is already in 1NF, and every field in the record is dependent on the entire primary key. Note that if the primary key of a 1NF record is a single field, then the record is in 2NF. 2NF is desirable to promote database consistency, to reduce overhead in adds, deletes, and changes

Creation of 2NF Records To go from 1NF record with combination key to 2NF, create a new record for each primary key field, then for all combinations of primary key fields; place each remaining field with the appropriate primary key (the minimal key), then eliminate records having no nonkey fields.

Third Normal Form (3NF) A record is in 3NF if it is in 2NF and no nonkey field is dependent on another nonkey field.

Other forms . . . Boyce-Codd Normal Form - slightly more restrictive (stronger) than 3NF if a non-key can determine another non-key, another relation should be formed 4NF - a key determines no more than one set of dependent values 5NF - beyond the scope of this course

More DBMS Terminology DDL Schema Subschema DML SQL QBE tuple Data dictionary DBA data independence consistency redundancy referential integrity relation attribute

Conceptual Database Models Can you name them without looking at the book?

Conceptual Database Models Hierarchical Network Relational Object-oriented

Hierarchical Oldest Parent/child paradigm Disadvantages 1 parent : 1 or many children Disadvantages complex data restructuring is painful

Network Defined by CODASYL Allows modeling of complex relationships Preceded relational model Efficient implementations delayed popular acceptance of relational model. Data restructuring is painful

Relational Simple (relatively speaking) Flexible Some changes to data base structure can be made without restructuring the entire data base. Logical data independence is more readily achieved.

Relational Database Model This is the predominant model today. Database is like a collection of tables (relations).

Object-oriented Relies on OO design Still maturing

Files (terms) block logical record physical record organization access master file transaction file blocking factor buffer

Access Methods Sequential Direct (random) Indexed sequential

File Organizations Sequential Relative Indexed sequential access only random access only Indexed sequential or . . . random

Database and/or File Design DFD is a possible starting point. Entity class diagram is a starting point. Create an ERD. Identify candidate keys. Create 3NF record designs? Consider access frequencies, data volumes, other factors. Consider access methods. Choose a database model and/or determine files. Consider denormalization?