Before the Relational Model COMP3211 Advanced Databases Dr Nicholas Gibbins – 2014-2015.

Slides:



Advertisements
Similar presentations
XML: Extensible Markup Language
Advertisements

Unit 5 The Network Model  5.1 The Network Model  5.2 IDMS.
Database Systems: Design, Implementation, and Management Tenth Edition
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Introduction to Databases
Chapter 16 The Hierarchical and Network Data Models David M. Kroenke Database Processing © 2000 Prentice Hall.
Information Systems Chapter 2 Organizing Data and Information.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Employee database: Conceptual Schema in ERD Chapter 3, page 62.
1 Basic DB Terms Data: Meaningful facts, text, graphics, images, sound, video segments –A collection of individual responses from a marketing research.
File Systems and Databases
Ch1: File Systems and Databases Hachim Haddouti
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 2 Data Models Database Systems, 8th Edition 1.
M1G Introduction to Database Development 1. Databases and Database Design.
Chapter 4 Entity Relationship (E-R) Modeling
Academic Year 2014 Spring.
SD2520 Databases using XML and JQuery
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
Database Design and Introduction to SQL
INTRODUCTION TO DATABASE USING MS ACCESS 2013 PART 2 NOVEMBER 4, 2014.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Hierarchical Model.
Module Title? DBMS E-R Model to Relational Model.
1 Introduction to databases concepts CCIS – IS department Level 4.
Database Management System Lecture 3 Models of Database Management Systems.
By: M.Nadeem Akhtar1 The Data Base Management System (DBMS) Ch # 09.
Module Title? DBMS Introduction to Database Management System.
Chapter 2 Database Environment
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Database Design - Lecture 2
Database Systems: Design, Implementation, and Management Ninth Edition
The main mathematical concepts that are used in this research are presented in this section. Definition 1: XML tree is composed of many subtrees of different.
History of Implementation Data Models. Databases were: Early Business Computer Systems –Accounting functions - payroll, profit/loss statements Files of.
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
Chapter # 2 Data Models BIS Database Systems A.Thanop Somprasong
1.1 CAS CS 460/660 Relational Model. 1.2 Review E/R Model: Entities, relationships, attributes Cardinalities: 1:1, 1:n, m:1, m:n Keys: superkeys, candidate.
1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
 2001 Prentice Hall Business Publishing, Accounting Information Systems, 8/E, Bodnar/Hopwood A field may be a single character or number, or it.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
Unit 5 The Network Model  5.1 Data Modeling Issues  5.2 The Network Model  5.3 IDMS.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
Data Structure Concepts Record Collection of field values Grouped as record types Parent-Child Relationships 1 :N Occurrence : ONE parent and zero or.
History of Implementation Data Models. Databases were: Early Business Computer Systems –Accounting functions - payroll, profit/loss statements Files of.
INTRODUCTION lecture1 1. Data base concept Data is a meaningless static value. What does 3421 means? Information is the data you process in a manner that.
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
Lection №4 Development of the Relational Databases.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
DBS201: Data Modeling. Agenda Data Modeling Types of Models Entity Relationship Model.
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Database Systems: Design, Implementation, and Management Tenth Edition
Architecture & Data Models
“Introduction To Database and SQL”
Appendix D: Network Model
Introduction lecture1.
“Introduction To Database and SQL”
Introduction to Database Management System
Database.
File Systems and Databases
DATA MODELS.
DATA MODELS.
UNIT-I Introduction to Database Management Systems
Before/Beyond the Relational Model
Legacy Databases.
Presentation transcript:

Before the Relational Model COMP3211 Advanced Databases Dr Nicholas Gibbins –

The Road Less Travelled 2

3 Lectures so far have concentrated on relational databases –Proposed by Ted Codd in 1969 –Developed by IBM for System R in the early 1970s –blahblah SQL blahblah Ingres blahblah Oracle blahblah etc What came before relational databases? What can we learn from those systems?

Hierachical Databases

IBM Information Management System Development started in 1966 to support the Apollo programme Best known example of a hierarchical database –Still in use! –Fast on common tasks that change infrequently – complements DB2 (IBM’s relational database) 6

Hierarchical Databases A hierarchy is a natural way to model many real world systems –Taxonomy (“is a kind of”) –Meronymy (“is a part of”) Many real-world examples –Organisation charts –Library classification systems –Biological taxonomies –Components of manufactures Hierarchical DBs are built as trees of related record types connected by parent-child relationships 7

Record Types EMPLOYEE NAME : CHAR20 NIN : CHAR9 BDATE : DATE Record name Fields Data type 8

Parent-Child Relationship Types EMPLOYEE NAMENINBDATE DEPARTMENT DNAMEMGRNAME 1 N parent child 9

Occurrences An occurrence or instance of the PCR type consists of: –One record of the parent record type –Zero or more records of the child record type –(i.e. an instance is a record and all of its children) PCR types are referred to by naming the pair of parent record type and child record type –e.g. (DEPARTMENT, EMPLOYEE) 10

Example Occurrences (DEPARTMENT, EMPLOYEE) Sales SmithJonesBrown IT FraserHardy 11

Hierarchical Schemas DEPARTMENT DNAMEMGRNAME EMPLOYEE NAMENINBDATE PROJECT PNAMELOCATION WORKER NAMENINHOURS 12

Hierarchical Occurrence Trees A database may contain many hierarchical occurrences (occurrence trees) Occurrence trees correspond to hierarchical schemas –Each occurrence tree is a tree structure whose root is a single record from the root record type of the schema –The occurrence tree contains all the children (and further descendants) of the root record, all the way to records of the leaf record types 13

Example Occurrence Tree Sales SmithJonesBrownWidgetsDoodads Smith JonesBrown 14

Issues Unidirectional relationships do not allow M:N relationships Multiple parents are not supported – strict hierarchy –Can’t represent an employee that works in more than one department N-ary relationships (between more than two record types) are not supported Querying/update requires the programmer to explicitly navigate the hierarchy – poor data independence 15

Network Databases

Standardised by the Conference on Data Systems Languages (CODASYL) committee in 1969 Addresses limitations of the hierarchical model Entities may be related to any number of other entities – no longer limited to a tree CA IDMS possibly the best-known example –Again, many instances still running worldwide 17

Using Network Databases Record types linked in 1:N relationships There are no constraints on the number and direction of links between record types No need for a root record type 18

Set Types DEPARTMENT STUDENT Owner type - 1 Member type - n Set typeMAJOR_DEPT 19

Set Occurrences Set occurrences (set instances) are composed of: –One owner record from the owner record type –Zero or more related member records from the member record type A record from the member record type cannot exist in more than one occurrence of a particular set type –Maintains 1:N constraint on set types 20

Representing M:N Relationships Set types can only represent 1:N relationships, yet many real- world relationships are M:N Use a linking or dummy record to join two record types in an M:N relationship DEPARTMENT STUDENT Linking record D_R REGISTRATION S_R 21

Issues Quite widely implemented Easier to model systems with networks than with hierarchies Can deal with M:N or N-ary relationships But Querying/update requires the programmer to explicitly navigate the hierarchy – poor data independence 22

Why should I care?

Those who cannot remember the past are condemned to repeat it.

Native XML Databases Conceptual descendent of hierarchical DBs Define a logical model for an XML document Store and retrieve documents according to that model –Elements and attributes –Plain text content (PCDATA) –Ordering of elements (document order) Common models –XPath data model –XML Infoset –XML Document Object Model (DOM) 25

XML in a Nutshell Some text The foo element Some text The contents of the foo element (plain text) An empty element, bar The contents of the foo element (an element) The baz attribute on the foo element The value of the baz attribute 26

Example XML Database 27

XQuery example { for $w in where return } Smith, J 20 Jones, P 40  28

NoSQL...