School of Computer Engineering: Kalinga Institute of Industrial Technology
School of Computer Engineering: Kalinga Institute of Industrial Technology
School of Computer Engineering: Kalinga Institute of Industrial Technology
School Of Computer
Engineering
Relational schema: A relational schema contains the name of the relation and name
of all columns or attributes.
Relational key: In the relational key, each row has one or more attributes. It can
identify the row in the relation uniquely
Relational Model
11
Advantages:
Changes in a table’s structure do not affect data access or application
programs
Tabular view substantially improves conceptual simplicity, thereby
promoting easier database design, implementation, management and
use
Have referential integrity controls ensure data consistency
RDBMS isolates the end-users from physical level details and
improves implementation and management simplicity
Disadvantages:
Conceptual simplicity gives relatively untrained people the tools to use
a good system poorly
It may promote islands of information problems as individuals and
departments can easily develop their own applications
Entity-Relationship(ER) Model
12
ER model stands for an Entity-Relationship model. It is a high-level data
model. This model is used to define the data elements and relationship for a
specified system.
It develops a conceptual design for the database. It also develops a very
simple and easy to design view of data.
In ER modeling, the database structure is portrayed as a diagram called an
entity-relationship diagram.
Peter Chen first introduced the ER data model in 1976; it was the
graphical representation of entities and their relationships in a database
structure that quickly became popular.
Entity-Relationship(ER) Model
13
Advantages:
Visual modeling yields exceptional conceptual simplicity
Visual representation makes it an effective communication tool
It is integrated with dominant relational model
Disadvantages:
There is limited constraint representation
There is limited relationship representation
There is no DML
Loss of information content when attributes are removed from entities
to avoid crowded displays
Object-Oriented(OO) Model
14
In object-oriented data model, both data and their relationships are
contained in a single structure called an object.
Like the relational model’s entity, an object is described by its factual
content. But quite unlike an entity, an object includes information about
relationships between the facts within the object, as well as information
about its relationships with other.
Attributes describe the properties of an object. Objects that share similar
characteristics are grouped in classes. Thus, a class is a collection of similar
objects with shared structure (attributes) and methods
Object-Oriented(OO) Model
15
Advantages:
Semantic content is added
Support for complex objects
Visual representation includes semantic content
Inheritance promotes data integrity
Disadvantages:
It is a complex navigational system
High system overheads slow transactions
Slow development of standards caused vendors to supply their own
enhancements, thus eliminating a widely accepted standard.
Object-Relational(OR) Model
16
The object-oriented data model is somewhat spherical in nature, allowing
access to unique elements anywhere within a database structure, with
extremely high performance. But, it performs extremely poorly when
retrieving more than a single data item.
The relational data model is best suited for retrieval of groups of data, but
can also be used to access unique data items fairly efficiently
Thus, by combining the features of relational data model and object-
oriented data model, object-relational data model was created.
Semi-structured Model
17
The semi-structured data model permits the specification of data where
individual data items of the same type may have different sets of attributes.
The XML (Extensible Markup Language) is widely used to represent semi-
structured data. It supports unstructured data.
18