Limitations of the relational model. Just as the relational model supplanted the network and hierarchical model so too will the object – orientated model.

Slides:



Advertisements
Similar presentations
Limitations of the relational model 1. 2 Overview application areas for which the relational model is inadequate - reasons drawbacks of relational DBMSs.
Advertisements

Chapter 10: Designing Databases
The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Database Systems: Design, Implementation, and Management Tenth Edition
Lecture-7/ T. Nouf Almujally
Introduction to Databases
Object-Oriented Databases v OO systems associated with – graphical user interface (GUI) – powerful modeling techniques – advanced data management capabilities.
OBJECTS Object Oriented ???????. OBJECTS Object-Oriented n OO convenient label for a collection of interconnected ideas n OO approach views computer.
File Systems and Databases
Organizing Data & Information
1 Database Systems (Part I) Introduction to Databases I Overview  Objectives of this lecture.  History and Evolution of Databases.  Basic Terms in Database.
Object-Oriented Databases
Introduction to Databases
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
1 Lecture 31 Introduction to Databases I Overview  Objectives of this lecture  History and Evolution of Databases  Basic Terms in Database and definitions.
RIZWAN REHMAN, CCS, DU. Advantages of ORDBMSs  The main advantages of extending the relational data model come from reuse and sharing.  Reuse comes.
EER vs. UML Terminology EER Diagram Entity Type Entity Attribute
Object and object-relational databases 1. Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions.
Advanced Database CS-426 Week 2 – Logic Query Languages, Object Model.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
CSC2012 Database Technology & CSC2513 Database Systems.
DBMS Lecture 9  Object Database Management Group –12 Rules for an OODBMS –Components of the ODMG standard  OODBMS Object Model Schema  OO Data Model.
Web-Enabled Decision Support Systems
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Introduction to SQL Steve Perry
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 System Concepts and Architecture Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
Database Design - Lecture 2
Database System Concepts and Architecture
Introduction: Databases and Database Users
2. Database System Concepts and Architecture
Introduction to Database Systems Fundamental Concepts Irvanizam Zamanhuri, M.Sc Computer Science Study Program Syiah Kuala University Website:
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
Modern Database Techniques Part 1: Object Oriented Databases 3. Different Kinds of OODB.
1 Object Databases: Introduction. 2 Why OO? v Relational Systems are limited: –Structural restrictions on data –Missing semantics (value-based relationships)
1 CS 430 Database Theory Winter 2005 Lecture 17: Objects, XML, and DBMSs.
SQL Structured Query Language Programming Course.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
Relational Data Model Ch. 7.1 – 7.3 John Ortiz Lecture 3Relational Data Model2 Why Study Relational Model?  Most widely used model.  Vendors: IBM,
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
OODBMS: Introduction and Logical Database Design
DataBase System Concepts and Architecture
Jemerson Pedernal IT 2.1 FUNDAMENTALS OF DATABASE APPLICATIONS by PEDERNAL, JEMERSON G. [BS-Computer Science] Palawan State University Computer Network.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Chapter 7 SQL HUANG XUEHUA. Chapter Objectives Specification of more general constraints via assertions SQL facilities for defining views (virtual.
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.
DBS201: Data Modeling. Agenda Data Modeling Types of Models Entity Relationship Model.
Chapter 3 The Relational Model. Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. “Legacy.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
CS 325 Spring ‘09 Chapter 1 Goals:
Datab ase Systems Week 1 by Zohaib Jan.
An Introduction to database system
Data Model.
Presentation transcript:

Limitations of the relational model

Just as the relational model supplanted the network and hierarchical model so too will the object – orientated model supplant the relation model ? Is this true? Why?

Major strengths of the relational model Data model and access is simple to understand and use Access to data via the model does not require navigation (following pointers) as the network models Allows (in principle) declarative query language There are straightforward DB design procedures Admits a solid and well understood mathematical foundation (RA) Implementation techniques are well known, efficient and widely used.

Cont….. Standards exist both for query languages (SQL) and for interfaces via programming languages (embedded SQL, ODBC) Why expand to another model?

Why go beyond the R model Some forms of data and knowledge which cannot be accommodated easily and adequately OO programming languages are emerging as the dominant form within development environments for large-scale software systems. Language independent system environments which are based upon OO models are emerging and may be extremely important in the future – Object management group (OMG) standards

Limitation 1 Some forms of data and knowledge which cannot be accommodated easily and adequately There are always very special types of data which require special forms of representation – Temporal data, Spatial data, Multimedia data, unstructured data (WH, DM),Documents libraries (digital libraries) Limitations regarding SQL3 as the query language – Recursive queries

Object identify ER modelling, object types such as employee, department, project etc are specified in the R model these survive only as names of relations/tables In R model entities have no independent identification of existence, objects are identified and access via identification of attributes characterising them – E.g.: a company db will have an entity of employee, yet in the R model the employee exists by virtue of a list of attributes in some tables.

Explicit relationships ER modelling explicit entities and relationships were specified in the R model the identities of relations have no explicit relations Relationships must be known to the user There are hidden semantics in the R model employee supervision Supervisor Supervisee employee Works on project ERR

Structured data objects 1NF stipulates that the values for attributes in a row be atomic Prevents complex values below in which the values of the domains are themselves rows – No collection types NameNIDoBAddres Gender Salary Empno Fname initail SnameNo street town city PC

Generalisation and inheritance Classes of entities to be modelling a db often have natural hierarchical structure Class of objects associated with a type higher is a superset of that association Every employee is a teacher Every student instructor is both a student and an instructor Classes below inherit attributes from those above Inheritance not in R model person studentemployee teacher Student instructor specialisation generalisation

methods Often it is convenient to record explicitly special queries on a database R model for read only queries this is accomplished via views – Cost overhead and need system to maintain the current value R model of updates has no similar mechanism procedures must be maintained outside of the model itself. – E.g. add employee

Strategies for addressing issues 2 main philosophies 1. Extend the R model to accommodate features to overcome these short comings 2. Start for scratch – It is not feasible to extend the R model in this way Both approaches have been tried over the past 20 years.

Extensions to the R model A number of vendors have added special features to their R database – Constraint! Any extension must be compatible with the SQL2(SQL-92) standard Oracle, IBM, HP, Informix/Ilustra/Mico, UniSQL Although futures may be similar they are not compatible beyone the SQL2 level In addition there have been attempts to extend SQL to accommodate desired features

Cont… SQL1999 (AKA SQL3) a standard which has recently been completed and addresses some of the concerns SQL4 a standard currently under development to address other issues These standards attempt to be compatible with earlier versions of SQL with small changes.

Fundamentally OO systems During the past 20 years a number of OO db systems have been developed, these largely abandon the R model and start from scratch with an OO db key examples are: – O 2, GemStone, OjectStore Each system displayed strengths for certain types of application System are not compatible with each other – Lead to need for standards for next generation of systems ODMG (object database management group)

Overall summary of current directions Bring databases ideas into the existing OO world – The database model is inherently OO; relational ideas are abandoned – There is no stand-alone query language – Access to the DB requires a host of OO programming language – Emerging standard: ODMG proposals

Cont … Bring OO concepts into the existing relational database world – The R model is extended to admit certain OO ideas – Access is via an extended version of SQL – Access via queries embedded in programming languages is also possible – Emerging standards SQL3, SQL4

Cont … Develop a general framework for manipulating objects in a interoperable environment – Framework is not specific to DBMS – Deals with general object services in a distributed heterogeneous environment – Existing standards OMG (object management group) proposals

Bottom line – which is best? Relational model v Object relational model V OO model Depends on the application at hand No one of these is superior to the others in all possible situations A better understanding of these approaches can help to decide which is most appropriate for a given application

Summary of the efficiency of these approaches SQL3/SQL4 – Extensions do add some needed features but definitions seem to be ad hoc and not based upon sound OO theory ODMG proposal – Foundations more solid to OO systems but advantages of R model lost Needs expertise to use systems Schema design is much more involved In many cases the system are orientated to wards a specific OO host language. OMG framework – Already becoming standard details of which are outside the scope of the module.