Database Models Presentation
Database Models Presentation
It is an underlying structure of a
DATABASE
WHICH IS a conceptual tool that
describes the data, the relationship
between the data semantics and
constrains
WHAT IS A DATABASE ???
A DATABASE is a
systematic collection of data
which support electronic
storage and manipulation of
data. Or a collection of
interrelated DATA e.g. in
hospitals patient information
WHAT IS A DATABASE
MODEL
A DATABASE MODEL
shows the logical structure
of a database, including
the relationships and
constrains that determine
how data can be stored
and accessed.
RELATIONAL MODELS
• THIS MODEL represents data as relations or as a
collection of Tables
• A relation is nothing but a table of value, these
rows in the table represents a collection of related
values
• ENTITY defines what the table is about (either place of thing or date)
3. The model also accounts for the types of relationships between those
tables including, ONE-TO-ONE and ONE-TO-MANY relationships
For example
Domain for the attribute
Users only need to specify their needs and leave the rest up to the
RDBMS
The RDBMS hides the complexities of the model from the user, the user
needs to specify what Data they need to either retrieve or update from
the database and then RDBMS WILL make sure how to maintain the
structure of the database while performing all these operations
Constraints
Every relation has some conditions that must hold for it to be a valid
relation. These conditions are called Relational integrity
constrains
1. Key constraints
2. Domain constraints
3. Referential constraints
Key constraints
There must be at least one minimal subset of attributes in the relation
which can identify a tuple uniquely .
If there are more than 1 such minimal subsets, these are called
candidate keys
Every attribute is bound to have a specific range of values for example age
cannot be less than 0 and telephone numbers can not contain a digit
outside 0-9