Legacy Databases.

Slides:



Advertisements
Similar presentations
Unit 5 The Network Model  5.1 The Network Model  5.2 IDMS.
Advertisements

DATA MODELS A collection of conceptual tools for describing data, data relationships, data semantics, and consistency constraints. Provide a way to describe.
The Hierarchical Model
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 16 The Hierarchical and Network Data Models David M. Kroenke Database Processing © 2000 Prentice Hall.
Entity Relationship Modeling BUS112 Professor Kwan.
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Teleprocessing.
Evolution in Database Models
Entity-Relationship Design
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
INTRODUCTION TO DATABASE USING MS ACCESS 2013 PART 2 NOVEMBER 4, 2014.
Hierarchical Model.
Database Management System Lecture 3 Models of Database Management Systems.
By: M.Nadeem Akhtar1 The Data Base Management System (DBMS) Ch # 09.
Conceptual Design Lecture - 2 Database Development.
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Data Dictionary.
Data Structure Concepts Record Collection of field values Grouped as record types Parent-Child Relationships 1 :N Occurrence : ONE parent and zero or.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
Lection №4 Development of the Relational Databases.
DES715 – Database Design Conceptual design. Database Life Cycle Database initial study Database design Implementation Testing Operation Maintenance.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Before the Relational Model COMP3211 Advanced Databases Dr Nicholas Gibbins –
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
Learning Objectives Today we will Learn: What is meant by a Hierarchical Database Management System Where such systems are used.
Entity-Relationship Data Model
Entity Relationship (E-R) Model
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
CompSci 280 S Introduction to Software Development
Logical Database Design and the Rational Model
Data Modeling and the Entity-Relationship Model
Architecture & Data Models
Chapter 3 Data Modeling Using the Entity-Relationship Model
Introducing Databases
Data Modeling Using the Entity- Relationship (ER) Model
“Introduction To Database and SQL”
COP Introduction to Database Structures
Indexing Structures for Files and Physical Database Design
Requirements Become the E-R Data Model
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Conceptual and Physical Database Design
The Context of Database Management
Database Management System
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.
Mr C Johnston ICT Teacher
Appendix E: Hierarchical Model
Appendix D: Network Model
Chapter 4 Relational Databases
Introduction lecture1.
Introduction to Database Management System
Data Modelling Introduction
Database.
File Systems and Databases
Databases and Structured Files: What is a database?
Data Modeling for Database Design 2
Advance Database System
Database Modeling using Entity Relationship Model (E-R Model)
Review of Week 1 Database DBMS File systems vs. database systems
Entities Things about which you need to store data. One entity for each different thing. At least two attributes At least two occurrences Not a property.
Database Design Hacettepe University
Appendix D: Network Model
UNIT-I Introduction to Database Management Systems
Entity-Relationship Diagram (ERD)
Guide to Modeling Keys to E-R diagrams.
Guide to Modeling Keys to E-R diagrams.
Entity-Relationship Data Model
Conceptual Data Modeling
Entity-Relationship Design
Presentation transcript:

Legacy Databases

Introduction Hierarchical model CODASYL model

Hierarchical Model The hierarchical model originated during the Apollo program conducted by NASA IBM developed the Information Management System or IMS DBMS (1966–1968) No formal description available and lots of structural limitations (legacy) Two key building blocks: record types and relationship types

Hierarchical Model A record type is a set of records describing similar entities and has zero, one, or more records e.g., product record type, supplier record type A record type consists of fields or data items e.g., product number, product name, product color

Hierarchical Model A relationship type connects two record types Only hierarchical structures are allowed (1:N relationship types) A record type can be a parent in multiple parent–child relationship types, but it can participate in at most one relationship type as a child Relationship types can be nested Root record type sits as the top of the hierarchy, whereas leaf record type sits at the bottom

Hierarchical Model 1:N relationship type!

Hierarchical Model

Hierarchical Model All data need to be retrieved by navigating down from the root node (procedural DML) The hierarchical model is also very rigid and thus limited in terms of expressive power No support for N:M or 1:1 relationship types N:M relationship type Assign one record type as the parent and the other as the child record type Put relationship type attributes in child record type However, redundancy is introduced!

Hierarchical Model

Hierarchical Model Another option for an N:M relationship type is to create two hierarchical structures and connect them using a virtual child record type and a virtual parent–child relationship type Pointers can then be used to navigate between both structures Relationship type attributes can be put in the virtual child record type No more redundancy

Hierarchical Model

Hierarchical Model 1:1 relationship types should be implemented in application programs The hierarchical model only allows relationship types of degree 2 Recursive relationship types or relationship types with more than two record types need to be implemented using virtual child record types A child cannot be disconnected from its parent (on delete cascade)

Hierarchical Model

Hierarchical Model Model limitations No guarantee that each department has exactly one manager No guarantee that a department has at least one employee

CODASYL Model The CODASYL model was developed by the Data Base Task Group of the COnference on DAta SYstem Languages in 1969 CA-IDMS (Computer Associates) Building blocks Record types Set types Lots of structural limitations (legacy)

CODASYL Model A record type is a set of records describing similar entities and has zero, one, or more records or record occurrences A record type consists of various data items A vector is a multi-valued attribute type e.g., e-mail address A repeated group is a composite data item for which a record can have multiple values or a composite multi-valued attribute type e.g., address

CODASYL Model A set type models a 1:N relationship type between an owner record type and a member record type A set occurrence has one owner record and zero, one, or more member records A CODASYL set has both owner and member records and it is also possible to order the member records (↔ mathematical set)

CODASYL Model

CODASYL Model A member record can exist without being connected to an owner record A record type can be a member record type in multiple set types (network structures) Multiple set types may be defined between the same record types

CODASYL Model Bachmann diagram

CODASYL Model 1:1 relationship types must be enforced in the application program N:M relationship types Introduce a dummy record type as a member record type in two set types having as owners the record types of the original N:M relationship type

CODASYL Model Procedural DML!

CODASYL Model CODASYL allows logically ordering the member records of a set (e.g., alphabetically) System can act as the owner for the root record type (singular or system-owned set type) No support for recursive set types Dummy record type needs to be introduced No set types with more than two participating record types

CODASYL Model

CODASYL Model

CODASYL Model limitations An employee can be managed by multiple employees No guarantee that a department must have exactly one manager No guarantee that a department has minimal one employee

Conclusion Hierarchical model CODASYL model