DBMS Module 3.4
DBMS Module 3.4
MCA 104
Module-3
2
allows for the creation of a hierarchy of classes and
facilitates code reuse and data modeling flexibility.
Polymorphism allows developers to write code that
can operate on objects of different types, enhancing
query and data manipulation capabilities.
4
data representation and making it easier to model real-
world entities.
6
Performance Overhead: While ORD offers great flexibility,
there can be performance overhead associated with
managing complex data types and nested structures.
Careful optimization may be required to ensure efficient
data access and query execution.
nested attributes.
Fig- Nested-Relations design
9
For example, to retrieve all orders from a specific customer in
the e-commerce example above, you might use a query like:
SELECT Orders.order_id, Orders.order_date,
Orders.total_amount
FROM Customers
WHERE Customers.customer_id = '12345';
10
Nested relations extend the capabilities of the relational data
model, allowing for more expressive and efficient
representation of complex hierarchical data structures. By
enabling the nesting of related data within a single table,
nested relations enhance data organization, integrity, and
retrieval in scenarios where multi-level relationships are
prevalent.
Benefits of Nested Relations:
11
understand the database's object-oriented extensions and
query syntax to work effectively with nested relations.
12
XML (eXtensible Markup Language): Some RDBMS have
support for native XML data type, which allows you to
store and process XML documents directly within the
database.
13
are specifically designed to handle more complex and
structured data.
In object-relational database management systems (ORDBMS),
complex data types are used to combine the features of both
relational databases and object-oriented programming. These
data types allow for the storage and manipulation of more
complex and structured data beyond the traditional scalar data
types found in relational databases. Some of the common
complex data types used in ORDBMS are:
14
Reference Types:Reference types allow for relationships
between objects. They enable the creation of references
from one object to another, similar to object references in
object-oriented programming languages.
15
and documents. They provide efficient storage and
retrieval of large data objects.
16
User-Defined Data Types (UDTs):SQL:1999 introduced the
ability to define User-Defined Data Types (UDTs). With
UDTs, developers can create custom data types,
encapsulating attributes and methods. This concept is
analogous to object-oriented classes, where a UDT defines
the blueprint for an object. UDTs allow for the
representation of complex data structures and enable the
enforcement of specific data integrity rules for those types.
19