SlideShare a Scribd company logo
Chapter 2
Object-Relational DBMSs
Chapter 28 in Textbook
2
Overview
 Why ORDBMS?
 What is ORDBMS?
 Stonebreaker’s view
 Advantages and disadvantages of
ORDBMS
 New OO features in SQL
 Comparison between OODBMS and
ORDBMS
3
Why ORDBMS – Extending
RDBMS
 Vendors of RDBMSs conscious of threat and
promise of OODBMS.
 Agree that RDBMSs not currently suited to
advanced database applications, and added
functionality is required.
 Reject claim that extended RDBMSs will not
provide sufficient functionality or will be too
slow to cope adequately with new
complexity.
 Can remedy shortcomings of relational
model by extending model with OO features.
4
What is ORDBMS?
 ORDBMS is a relational database with OO
features.
 OO features being added include:
 User-extensible types.
 Encapsulation.
 Inheritance.
 Polymorphism.
 Dynamic binding of methods.
 Complex objects.
 Object identity.
5
Stonebraker’s View
6
Advantages of ORDBMSs
 Resolves many of known weaknesses of
RDBMS.
 Reuse and sharing:
 reuse comes from ability to extend server to
perform standard functionality centrally;
 Preserves significant body of knowledge and
experience gone into developing relational
applications.
7
Disadvantages of ORDBMSs
 Complexity.
 Increased costs.
 Proponents of relational approach believe
simplicity and purity of relational model are
lost.
 Some believe RDBMS is being extended for
what will be a minority of applications.
 OO purists not attracted by extensions
either.
 SQL now extremely complex.
8
SQL:2003 - New OO Features
 Type constructors for row types and
reference types.
 User-defined types (distinct types and
structured types) that can participate in
supertype/subtype relationships.
 User-defined procedures, functions, methods,
and operators.
 Type constructors for collection types
(arrays, sets, lists, and multisets).
 Support for large objects – BLOBs and
CLOBs.
 Recursion.
9
Row Types
 Sequence of field name/data type
pairs that provides data type to
represent rows in tables.
 Allows complete rows to be:
 stored in variables,
 passed as arguments to routines,
 returned as return values from function calls.
 Also allows column of table to contain
row values.
10
User-Defined Types (UDTs)
SQL:2003 allows definition of UDTs.
May be used in same way as built-in types.
Subdivided into two categories: distinct types
and structured types.
 Distinct type allows differentiation between same
underlying base types.
 Structured type consists of a group of other types
(built-in or UDT).
11
Reference Types and Object
Identity
 References allow
 A row to be shared among multiple tables. and
 Users to replace complex join definitions in
queries with much simpler path expressions
(similar to OODBMS).
12
User-Defined Routines (UDRs)
 UDRs define methods for manipulating data.
 UDRs may be defined as part of a UDT or
separately as part of a schema.
 UDRs may be
 externally provided in standard programming
language (exp. C).
 or defined completely in SQL.
 UDR may be a procedure, function, or
method.
 A procedure has input and output parameters.
 A function has input parameters and must return
a value.
 A method must be a part of UDT.
13
Subtypes and Supertypes
 UDTs can participate in
subtype/supertype hierarchy.
 Subtype inherits all the attributes
and behavior of its supertypes.
 Can define additional attributes and
methods and can override inherited
methods.
14
Subtables and Supertables
 No mechanism to store all instances of given UDT,
unless user explicitly creates a single table in which all
instances are stored.
 Thus, in SQL:2003 may not be possible to apply an
SQL query to all instances of a given UDT.
 Can use table inheritance, which allows table to be
created that inherits all the rows of one or more
existing tables.
 Subtable/supertable independent from UDT
inheritance facility.
 Subtable/supertable: rows are inherited.
 Subtype/supertype: attributes and methods are
inherited.
15
Collection Types
ARRAY: ordered 1D array with maximum
number of elements without duplicates.
LIST: ordered collection that allows
duplicates.
SET: unordered collection without duplicates.
MULTISET: unordered collection that allows
duplicates.
Similar to those in OODBMS
(What were MULTISETs called in OODBMS?).
16
Large Objects
 A table field that holds large amount
of data.
 Three different types:
 Binary Large Object (BLOB).
 Character LOB (CLOB).
 National CLOB.
 Unlike SQL2, in SQL:2003, LOB does
allow some operations to be carried
out in DBMS server.

More Related Content

Similar to ordbms.ppt

Updated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptxUpdated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptx
THEFPS
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
rdbms-161216100344 (1).pdf
rdbms-161216100344 (1).pdfrdbms-161216100344 (1).pdf
rdbms-161216100344 (1).pdf
IrfanRashid36
 
DBMS summer 19.pdf
DBMS summer 19.pdfDBMS summer 19.pdf
DBMS summer 19.pdf
SohamKotalwar1
 
Lecture on DBMS & MySQL.pdf v. C. .
Lecture on DBMS & MySQL.pdf v.  C.     .Lecture on DBMS & MySQL.pdf v.  C.     .
Lecture on DBMS & MySQL.pdf v. C. .
MayankSinghRawat6
 
SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3
jeetendra mandal
 
SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2
jeetendra mandal
 
RDBMS
RDBMSRDBMS
SQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics CoveredSQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics Covered
Danish Mehraj
 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptx
SubhamSarkar64
 
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtapOverview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
Vikas Jagtap
 
chapter-14-sql-commands.pdf
chapter-14-sql-commands.pdfchapter-14-sql-commands.pdf
chapter-14-sql-commands.pdf
study material
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
ambika93
 
Dbms interview ques
Dbms interview quesDbms interview ques
Dbms interview ques
SwatiJain303
 
Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)
Rakibul Hasan Pranto
 
Cse ii ii sem
Cse ii ii semCse ii ii sem
Cse ii ii sem
MdwebdevDev
 
MSSQL_Book.pdf
MSSQL_Book.pdfMSSQL_Book.pdf
MSSQL_Book.pdf
DubsmashTamizhan
 
Unit 3 rdbms study_materials-converted
Unit 3  rdbms study_materials-convertedUnit 3  rdbms study_materials-converted
Unit 3 rdbms study_materials-converted
gayaramesh
 

Similar to ordbms.ppt (20)

Updated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptxUpdated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptx
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
RDBMS
RDBMSRDBMS
RDBMS
 
rdbms-161216100344 (1).pdf
rdbms-161216100344 (1).pdfrdbms-161216100344 (1).pdf
rdbms-161216100344 (1).pdf
 
DBMS summer 19.pdf
DBMS summer 19.pdfDBMS summer 19.pdf
DBMS summer 19.pdf
 
Lecture on DBMS & MySQL.pdf v. C. .
Lecture on DBMS & MySQL.pdf v.  C.     .Lecture on DBMS & MySQL.pdf v.  C.     .
Lecture on DBMS & MySQL.pdf v. C. .
 
SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3
 
SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2
 
RDBMS
RDBMSRDBMS
RDBMS
 
SQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics CoveredSQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics Covered
 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptx
 
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtapOverview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
 
chapter-14-sql-commands.pdf
chapter-14-sql-commands.pdfchapter-14-sql-commands.pdf
chapter-14-sql-commands.pdf
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
 
Dbms interview ques
Dbms interview quesDbms interview ques
Dbms interview ques
 
Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)
 
Cse ii ii sem
Cse ii ii semCse ii ii sem
Cse ii ii sem
 
Mysql
MysqlMysql
Mysql
 
MSSQL_Book.pdf
MSSQL_Book.pdfMSSQL_Book.pdf
MSSQL_Book.pdf
 
Unit 3 rdbms study_materials-converted
Unit 3  rdbms study_materials-convertedUnit 3  rdbms study_materials-converted
Unit 3 rdbms study_materials-converted
 

More from HODCA1

Quick-Start-UNIX.pdf
Quick-Start-UNIX.pdfQuick-Start-UNIX.pdf
Quick-Start-UNIX.pdf
HODCA1
 
12c-install.pdf
12c-install.pdf12c-install.pdf
12c-install.pdf
HODCA1
 
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdfmariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
HODCA1
 
5db-security.pdf
5db-security.pdf5db-security.pdf
5db-security.pdf
HODCA1
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.ppt
HODCA1
 
rac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfrac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdf
HODCA1
 
1DATABASE.pptx
1DATABASE.pptx1DATABASE.pptx
1DATABASE.pptx
HODCA1
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
HODCA1
 
agile_tutorial.pdf
agile_tutorial.pdfagile_tutorial.pdf
agile_tutorial.pdf
HODCA1
 

More from HODCA1 (9)

Quick-Start-UNIX.pdf
Quick-Start-UNIX.pdfQuick-Start-UNIX.pdf
Quick-Start-UNIX.pdf
 
12c-install.pdf
12c-install.pdf12c-install.pdf
12c-install.pdf
 
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdfmariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
 
5db-security.pdf
5db-security.pdf5db-security.pdf
5db-security.pdf
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.ppt
 
rac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfrac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdf
 
1DATABASE.pptx
1DATABASE.pptx1DATABASE.pptx
1DATABASE.pptx
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
 
agile_tutorial.pdf
agile_tutorial.pdfagile_tutorial.pdf
agile_tutorial.pdf
 

Recently uploaded

Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
kalichargn70th171
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 

Recently uploaded (20)

Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 

ordbms.ppt

  • 2. 2 Overview  Why ORDBMS?  What is ORDBMS?  Stonebreaker’s view  Advantages and disadvantages of ORDBMS  New OO features in SQL  Comparison between OODBMS and ORDBMS
  • 3. 3 Why ORDBMS – Extending RDBMS  Vendors of RDBMSs conscious of threat and promise of OODBMS.  Agree that RDBMSs not currently suited to advanced database applications, and added functionality is required.  Reject claim that extended RDBMSs will not provide sufficient functionality or will be too slow to cope adequately with new complexity.  Can remedy shortcomings of relational model by extending model with OO features.
  • 4. 4 What is ORDBMS?  ORDBMS is a relational database with OO features.  OO features being added include:  User-extensible types.  Encapsulation.  Inheritance.  Polymorphism.  Dynamic binding of methods.  Complex objects.  Object identity.
  • 6. 6 Advantages of ORDBMSs  Resolves many of known weaknesses of RDBMS.  Reuse and sharing:  reuse comes from ability to extend server to perform standard functionality centrally;  Preserves significant body of knowledge and experience gone into developing relational applications.
  • 7. 7 Disadvantages of ORDBMSs  Complexity.  Increased costs.  Proponents of relational approach believe simplicity and purity of relational model are lost.  Some believe RDBMS is being extended for what will be a minority of applications.  OO purists not attracted by extensions either.  SQL now extremely complex.
  • 8. 8 SQL:2003 - New OO Features  Type constructors for row types and reference types.  User-defined types (distinct types and structured types) that can participate in supertype/subtype relationships.  User-defined procedures, functions, methods, and operators.  Type constructors for collection types (arrays, sets, lists, and multisets).  Support for large objects – BLOBs and CLOBs.  Recursion.
  • 9. 9 Row Types  Sequence of field name/data type pairs that provides data type to represent rows in tables.  Allows complete rows to be:  stored in variables,  passed as arguments to routines,  returned as return values from function calls.  Also allows column of table to contain row values.
  • 10. 10 User-Defined Types (UDTs) SQL:2003 allows definition of UDTs. May be used in same way as built-in types. Subdivided into two categories: distinct types and structured types.  Distinct type allows differentiation between same underlying base types.  Structured type consists of a group of other types (built-in or UDT).
  • 11. 11 Reference Types and Object Identity  References allow  A row to be shared among multiple tables. and  Users to replace complex join definitions in queries with much simpler path expressions (similar to OODBMS).
  • 12. 12 User-Defined Routines (UDRs)  UDRs define methods for manipulating data.  UDRs may be defined as part of a UDT or separately as part of a schema.  UDRs may be  externally provided in standard programming language (exp. C).  or defined completely in SQL.  UDR may be a procedure, function, or method.  A procedure has input and output parameters.  A function has input parameters and must return a value.  A method must be a part of UDT.
  • 13. 13 Subtypes and Supertypes  UDTs can participate in subtype/supertype hierarchy.  Subtype inherits all the attributes and behavior of its supertypes.  Can define additional attributes and methods and can override inherited methods.
  • 14. 14 Subtables and Supertables  No mechanism to store all instances of given UDT, unless user explicitly creates a single table in which all instances are stored.  Thus, in SQL:2003 may not be possible to apply an SQL query to all instances of a given UDT.  Can use table inheritance, which allows table to be created that inherits all the rows of one or more existing tables.  Subtable/supertable independent from UDT inheritance facility.  Subtable/supertable: rows are inherited.  Subtype/supertype: attributes and methods are inherited.
  • 15. 15 Collection Types ARRAY: ordered 1D array with maximum number of elements without duplicates. LIST: ordered collection that allows duplicates. SET: unordered collection without duplicates. MULTISET: unordered collection that allows duplicates. Similar to those in OODBMS (What were MULTISETs called in OODBMS?).
  • 16. 16 Large Objects  A table field that holds large amount of data.  Three different types:  Binary Large Object (BLOB).  Character LOB (CLOB).  National CLOB.  Unlike SQL2, in SQL:2003, LOB does allow some operations to be carried out in DBMS server.