Professional Documents
Culture Documents
Database Data Model
Database Data Model
Database Data Model
Welcome to the sixth module of this course. For this lesson, database
data model is discussed. What are Attributes and its example, entity
and relationship and its degree?
Data Model
A database model is a type of data model that determines the logical
structure of a databaseand primarily determines in which
manner data can be stored, organized, and manipulated.
Data Models
Entity-Relationship Model
Relationship:
one to one
2
MODULE OF INSTRUCTION
one to many
many to one
many to many
Relational Model
Database Schema
Database Instance
Data Independence
All the schemas are logical, and the actual data is stored
in bit format on the disk. Physical data independence is
the power to change the physical data without
impacting the schema or logical data.
4
MODULE OF INSTRUCTION
ER MODEL : Entity
Entity
ER MODEL : Attribute
Attributes
Types of Attributes
6
MODULE OF INSTRUCTION
Relationship
Binary = degree 1
Ternary = degree 1
n-ary = degree 3
ER-diagram representation
Entity
Relationship: One:One
8
MODULE OF INSTRUCTION
Participation Constraints
Inheritance
10
MODULE OF INSTRUCTION
This is a foundation rule, which acts as a base for all the other rules.
Rule 6: View Updating Rule All the views of a database, which can
theoretically be updated, must also be updatable by the system.
12
MODULE OF INSTRUCTION
1. Key constraints
2. Domain constraints
3. Referential integrity constraints
14
MODULE OF INSTRUCTION
LESSON SUMMARY:
Activities/Exercises
Download the Laboratory Exercise 4: Data Model
Construct the Database Model base on your own design
and understanding based on the given requirements.
Glossary
Attributes: Attributes are the properties of entities.
16
MODULE OF INSTRUCTION
References
Textbook:
Oracle Database 11g 2nd Edition K Gopalakrishnan (
2012)
References:
Carlos, Peter (2009). Database Systems
Connoly, Thomas & Begg, Carolyn (2010). Database
Systems : A practical approach to design,
implementation and management
Sciore, Edward (2009). Database Design and
Implementation
Bulusu, Lakshman (2008). Oracle PL/SQL : Expert
Techniques for Developers and Database
Administrators
Loshin, David (2008). Master Data Management