Database Systems
Database Systems
Objective
In this Lab students will learn about Entity relationship models and entity-relationship diagrams.
Introduction
Entity Relationship Model (ER Modelling) is a graphical approach to database design. It is a
high-level data model that defines data elements and their relationship for a specified software
system. An ER model is used to represent real-world objects.
What is an ER Diagram?
ER Diagram stands for Entity Relationship Diagram, also known as ERD is a diagram that
displays the relationship of entity sets stored in a database. In other words, ER diagrams help
to explain the logical structure of databases. ER diagrams are created based on three basic
concepts: entities, attributes and relationships. ER Diagrams contain different symbols that use
rectangles to represent entities, ovals to define attributes and diamond shapes to represent
relationships.
At first look, an ER diagram looks very similar to the flowchart. However, ER Diagram
includes many specialized symbols, and its meanings make this model unique. The purpose of
ER Diagram is to represent the entity framework infrastructure
Entity Relationship Diagram Symbols & Notations mainly contains three basic symbols
which are rectangle, oval and diamond to represent relationships between elements,
entities and attributes. There are some sub-elements which are based on main elements in
the ERD Diagram. ER Diagram is a visual representation of data that describes how data is
related to each other using different ERD Symbols and Notations.
Following are the main components and its symbols in ER Diagrams:
ER Diagram Symbols
Lab Task 1
You've been tasked with designing a database for an online bookstore that sells books
to customers. The bookstore has multiple book categories and a large number of
customers who can place orders. In order to model this system using an ERD, we can
start by identifying the entities, attributes, and relationships that are involved.
Relationships:
One book can belong to multiple categories (Many-to-Many).
Lab Task 2
Design a database system for a university. The university has multiple departments, each
offering several courses. Students enroll in courses offered by these departments. Professors
teach these courses. Each course has multiple assessments (exams, assignments, etc.), and
students receive grades for these assessments. Students may also belong to various clubs and
organizations within the university. Clubs organize events and have members. Design an Entity-
Relationship Diagram (ERD) to represent the university system, considering the entities,
relationships, and attributes involved.