Lecture Notes 3 - Part1
Lecture Notes 3 - Part1
ADVANCED DATABASES
Data Modelling Processes
(Part 1)
Data modeling, Entity-Relationship (E-R)
modeling, and Relational Modeling
While all the three levels of data modeling contain entities with
attributes and relationships, they differ in the purposes they are
created for and the audiences they are meant to target.
Conceptual model vs Logical model vs Data model
Conceptual Data Model
Conceptual design models the business objects that should
exist in a system and the relationships between them.
It includes primary and foreign keys, as well as the data types for
each column.
Make sure the column types are supported by the DBMS and
reserved words are not used in naming entities and columns.
Here’s an example of the student and course physical data
model.
Entity Relationship Diagram
A weak entity does not have a primary key attribute that can
uniquely identify its instances on its own.
However,
including the primary key of the strong entity in the primary key
of the weak entity is often a logical choice because
and
They are also often nouns and become the columns of the
table.
There are several symbols and notations that are used in the
Entity Relationship Diagrams.
Summarizing
An Entity Relationship Diagram is a great tool to help you
define, understand, and communicate the requirements of a
system. It can be modelled at a high level (conceptual data
model), a detailed level (physical data model) or a level in
between (logical data model). There is a range of modelling
notations or types of symbols which define how entities,
attributes, and relationships are captured.
The main goal of designing a data model is to make certain that
data objects offered by the functional team are represented
accurately. We should first start from the conceptual data
model.
Things
Furniture
Equipment
Stationery
Fire extinguishers
Locations
Offices
Warehouses
Stock rooms.
Events
Sale is made
Purchase order is raised
Item is hired
Invoice is issued
Concepts
Image of product
Advertising
Marketing
Research and development
Entity: House
Attributes:
Entity: Book
Attributes:
• Entity: Employee
• Attributes:
Values
Using the entities and attributes shown above, the following are
examples of one set of values for a particular instance of each
entity.
Every occurrence of an entity will have its own set of values for
attributes it possesses.
Entity: House
Attributes:
Values
Entity: Book
Attributes:
Values:
Entity: Employee
Attributes
Values:
QUESTIONS