Database Model
Database Model
[email protected]
InfinitySoft
A data model is a model describing the data in an
organization
Abstraction tool
Abstracts essential qualities of a
dataset
Data modeling is the process of abstraction and
documentation using a data model
Determination of the data requirements (views)
of individual users & applications
For e.g.
Project building process /customer requirements
specs
Integration of the individual user (customer) &
application (s/w) views into an overall
conceptual views.
Customer reviews – Conflict resolution.
2 types:
Unconstrained/Natural Conceptual Design
Constrained/Conceptual Design
The internal structure of the database
Translating the Conceptual Design(previous
steps) into physical structures; basically stacks,
queues etc…
Data abstraction creates hierarchies of
abstractions along 2 dimensions
Aggregation
Generalization
Aggregation
Identifies a data items as a part of a higher
level, more aggregate descriptor
e.g. Project -> Project -> Assignment
Generalization
It creates categories into which a data item
may be classified
e.g. Employee can be categorized into
age
Type of job
Type of pay plan, etc…
Conceptual Model:
designed to promote user understandable
Specifications of data.
Physical Model
designed to aid in physical database design.
Info logical
for human understanding and requirements level.
Data logical
deals with physical and database implementation.
Some models can contain elements of both models.
Terms used in Data definition
Entity: Any type of "thing" about which info. Is
being maintained.
Attribute: A characteristic of an entity.
Instance: instance of an entity or relationship.
Relationship: Association between entities.
Identifiers: Set of attributes which uniquely identify
an instance of an entity or relationship.
EMPLOYEE is an entity
A person who works for the company is an
instance of EMPLOYEE.
His/her age is an attribute of the entity type.
Employee OF company, here "of" is a
relationship.
Employee Id is an identifier.
Three types amongst activities
recorded during conceptual data modeling.
has adverse effects on the physical database
design
Basically
ENDOWED
PROCESSOR CHAIR
HELD BY
An entity has relationships with many instances
of another entity.
S1 UNIVERSITY S5
S5
S2 S3
S3 S4
S4
REGISTERED
STUDENT CLASS
Defines conditions that must be met for the data to be
complete and correct.
Three types:
On values
On dependencies
On referential integrity
• Values: allowable, valid values for attribute
• Dependencies: allowable values for attributes may
depend on some other value.
• E.g. allowable values for an employee skill
classification are a part of allowable skills of the
department he/she works in.
Entities and relationships often have reference
conditions that must be met.