Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 8 Object-Relational Database.

Slides:



Advertisements
Similar presentations
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification.
Advertisements

Object Oriented Database Group 4 Mathieu Metz Palani Kumaresan Napa Gavinlertvatana Kristine Pei Keow Lee Prabhu Ramachandran.
Copyright © 2004 Pearson Education, Inc.. Chapter 9 More SQL: Assertions, Views, and Programming Techniques.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 6 (Continued) The Relational Algebra and Calculus.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification.
Copyright © 2004 Pearson Education, Inc.. Chapter 5 The Relational Data Model and Relational Database Constraints.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 13 Introduction to SQL Programming Techniques.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 The Basic (Flat) Relational Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4 SQL: Data Definition, Constraints, and Basic Queries and Updates.
Winter 2002Arthur Keller – CS 18012–1 Schedule Today: Feb. 19 (T) u Object-Relational Systems. u Read Sections 4.5, Assignment 5 due. Feb. 21.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entity- Relationship (EER) Model.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
Chapter 9: Object-Relational Databases
Fall 2001Arthur Keller – CS 18014–1 Schedule Nov. 13 (T) Object-Relational, O-R Queries. u Read Sections 4.5, Assignment 6 due. (No office hours.)
Winter 2002Judy Cushing12–1 Schedule Today (week 8): u Object-Relational Systems. Sections 4.5, u Assignment 5 debriefed. u Transactions, Authorization.
Copyright © 2004 Pearson Education, Inc.. Chapter 8 SQL-99: Schema Definition, Basic Constraints, and Queries.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 7 Relational Database Design by ER- Mapping.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 9 Relational Database Design by ER- and EER-to- Relational Mapping.
Object Oriented Databases - Overview
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 2-1 Data Models Example: A relation.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 9 Relational Database Design by ER- and EER-to- Relational Mapping.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Object and Object- Relational Databases.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entity- Relationship (EER) Model.
Object-Based Databases. 2 Complex Data Types and Object Orientation Structured Data Types and Inheritance in SQL Table Inheritance Array and Multiset.
22.1Database System Concepts - 6 th Edition Chapter 22: Object-Based Databases Complex Data Types and Object Orientation Structured Data Types and Inheritance.
©Silberschatz, Korth and SudarshanDatabase System Concepts.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 7- 1.
Database System Concepts ©Silberschatz, Korth and Sudarshan Database System Concepts Chapter 9: Object-Based Databases.
Object-Based Databases Ghazal Mostofi Sadri. Outline 1.Overview 2.Complex Data Types 3.Structured Types and Inheritance in SQL 4.Table Inheritance 5.Array.
Chapter 21 A Object Data Model - Intro Copyright © 2004 Pearson Education, Inc.
Chapter 21 B Mapping to ODL Copyright © 2004 Pearson Education, Inc.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 7 Relational Database Design by ER- Mapping.
ADVANCED DATABASE SYSTEMS DR. FATEMEH AHMADI- ABKENARI SEPTEMBER Object Databases.
Winter 2006Keller, Ullman, Cushing12–1 Object-Relational Systems Object-oriented ideas enter the relational world. u Keep relation as the fundamental abstraction.
Chapter 21 C OQL Copyright © 2004 Pearson Education, Inc.
Chapter 21 Object Database Standards, Languages, and Design Copyright © 2004 Pearson Education, Inc.
Object-Relational SQL CIS 4301 Lecture Notes 4/20/2006.
Object relational database managmement systems (ORDBMS) Adapted by Edel Sherratt from originals by Nigel Hardy.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Copyright © 2004 Pearson Education, Inc.. Chapter 21 Object Database Standards, Languages, and Design.
Al-Maarefa College for Science and Technology INFO 232: Database systems Chapter 3 “part 2” The Relational Algebra and Calculus Instructor Ms. Arwa Binsaleh.
Copyright © 2004 Pearson Education, Inc.. Chapter 22 Object-Relational and Extended-Relational Systems.
Object Relational Features
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide Introduction Object Oriented (OO) Data Models since mid-90’s Reasons for creation of.
FEN NOEA/IT - Databases/ORDB1 Object-Relational Databases The Evolutionary Approach to Closing the Gap between Relational Tables and Object Models.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Object-Relational Model. Review: Data Models Hierarchical Network ER (Pure) Relational (Pure) Object-oriented (ODMG) Object-relational (since SQL:1999)
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 7- 1.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
Chapter 20 Concepts for Object-Oriented Databases Copyright © 2004 Pearson Education, Inc.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe Chapter 12 Outline Overview of Object Database Concepts Object-Relational Features Object Database.
IST 210 Object Oriented Database. IST 210 Object-Oriented Concepts  Abstract Data Types  Class definition, provides extension to complex attribute types.
Faeez, Franz & Syamim.   Database – collection of persistent data  Database Management System (DBMS) – software system that supports creation, population,
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4 Basic SQL تنبيه : شرائح العرض (Slides) هي وسيلة لتوضيح الدرس واداة.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe.
Copyright © 2004 Pearson Education, Inc.. Chapter 24 Enhanced Data Models for Advanced Applications.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 The Relational Data Model and Relational Database Constraints تنبيه.
CSE202 Database Management Systems
Chapter 12 Outline Overview of Object Database Concepts
Object-Relational Systems
Structured Types (9-12-2) Structured types allow composite attributes of E-R diagrams to be represented directly. Unnamed row types can also be used in.
Object – relational database
Presentation transcript:

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 8 Object-Relational Database

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 8- 2 Chapter Outline 22.1 Overview of Object-Relational Features of SQL

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 8- 3 Section 22.1 SQL’s Object-Relational Features SQL was specified in 1970s SQL was enhanced substantially in 1989 and 1992 A new standard called SQL3 added object- oriented features A subset of SQL3 standard, now known as SQL- 99 has been approved

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 8- 4 Object-Relational Support in SQL-99 Type constructors to specify complex objects Mechanism to specify object-identity Mechanism for encapsulation of operations Mechanism to support inheritance I.e., specify specialization and generalization

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 8- 5 Type Constructors (1) Two types: row and array Known as user-defined types (UDTs) Syntax for a row type CREATE TYPE row_type_name AS [ROW] ( ) An example: CREATE TYPE Addr_type AS ( street VARCHAR (45), city VARCHAR (25), zip CHAR (5));

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 8- 6 Type Constructors (2) An array type is specified for an attribute whose value will be a collection Example: CREATE TYPE Comp_type AS ( comp_name VARCHAR (2). location VARCHAR (20) ARRAY [10] ); Dot notation is used to refer to components E.g., comp1.comp_name is the comp_name part of comp1 (of type Comp_type )

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 8- 7 Object-Identifiers Using References A user-defined type can also be used to specify the row types of a table: CREATE TABLE Company OF Comp_type (REF IS comp_id SYSTEM GENERATED, PRIMARY KEY (comp_name)); Syntax to specify object identifiers: REF IS Options: SYSTEM GENERATED or DERIVED

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 8- 8 Attributes as References A component attribute of one tuple may be a reference: CREATE TYPE Employment_type AS ( employee REF (Emp_type) SCOPE (Employee), company REF (Comp_type) SCOPE (Company)); Keyword SCOPE specifies the table whose tuples can be referenced by a reference attribute via the dereferencing notation -> E.g., e.company->comp_name

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 8- 9 Encapsulation of Operations A construct similar to the class definition Users can create a named user-defined type with its own methods in addition to attributes: CREATE TYPE ( list of attributes declaration of EQUAL and LESS THAN methods declaration of other methods );

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide Method Syntax Syntax: METHOD ( ) RETURNS ; An example CREATE TYPE Addr_type AS ( street VARCHAR (45), city VARCHAR (25), zip CHAR (5) ) METHOD apt_no ( ) RETURNS CHAR(8);

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide Inheritance in SQL Inheritance is specified via the UNDER keyword Example CREATE TYPE Manager_type UNDER Emp_type AS (dept_managed CHAR (20)); Manager_type inherits all features of Emp_type and it has an additional attribute called dept_managed