DBMS & SQLLevel 3
PART 1 • CONCEPTUAL DATABASE DESIGN

Turn Real Requirements into a Correct ER Model

Identify the important objects, describe their properties and express business rules with relationships, cardinalities and participation constraints.

Level 03 of 18Foundation90–120 minutesLevels 1–2 recommended
BY THE END, YOU CAN
  • Extract entities and relationships from requirements.
  • Classify attributes and choose keys.
  • Specify cardinality and participation.
  • Model weak entities correctly.
  • Use specialization and generalization.
  • Defend every modelling decision.
01 • START FROM THE REQUIREMENT

An ER Diagram Is a Decision Model, Not Decoration

Every box, attribute and line should correspond to a fact or rule in the problem statement.

UNIVERSITY REQUIREMENT

“The university stores each student with a unique ID, name and phone numbers. Every course has a unique code, title and credits. A student can enrol in many courses, and a course can contain many students. For each enrolment, store the semester and grade.”

  1. Nouns suggest entities: Student and Course.
  2. Descriptive facts suggest attributes: name, title and credits.
  3. Verbs suggest relationships: Student enrols in Course.
  4. Quantity words suggest cardinality: many students and many courses.
  5. Facts about the relationship belong to it: semester and grade describe Enrolment.
1Collect rules

Interview users and record domain vocabulary.

2Find entities

Choose objects that need independent identity.

3Add attributes

Describe each entity and select identifiers.

4Connect entities

Name relationships using meaningful verbs.

5Add constraints

State cardinality, participation and uniqueness.

6Validate

Test the diagram with real examples and exceptions.

02 • IDENTIFY & CLASSIFY

Entities Have Identity; Attributes Describe Them

ENTITY

One distinguishable object

A particular student such as Student 101.

ENTITY TYPE

The common definition

STUDENT with student_id, name and date_of_birth.

ENTITY SET

Current collection of entities

All students stored at a particular time.

03 • CONNECT ENTITIES

A Relationship Represents a Meaningful Association

Name relationships with verbs so the diagram can be read as a sentence.

STUDENTENROLSCOURSE
UNARY / RECURSIVE

EMPLOYEE supervises EMPLOYEE

One entity type participates more than once in different roles.

BINARY

STUDENT enrols in COURSE

Two entity types participate. This is the most common degree.

TERNARY

SUPPLIER supplies PART to PROJECT

Three entity types participate in one inseparable fact.

RELATIONSHIP ATTRIBUTE

Grade belongs to ENROLMENT

A grade cannot be assigned to Student alone or Course alone. It describes one student’s enrolment in one course, so it belongs to the relationship (or associative entity).

04 • EXPRESS BUSINESS RULES

Cardinality Answers “How Many?”; Participation Answers “Is It Required?”

CARDINALITY RATIO

Maximum participation

1:1

One on each side

1:N

One relates to many

M:N

Many relate to many

PARTICIPATION CONSTRAINT

Minimum participation

Partial / optional

Minimum is zero; an entity may exist without the relationship.

Total / mandatory

Minimum is one; every entity must participate.

STUDENT (0, N)

A student may initially have no enrolment and later join many courses.

ENROLMENT (1, 1)

Every enrolment must belong to exactly one student and one course.

DEPARTMENT (1, N)

Under this rule, every department must offer at least one course.

05 • BUILD & EXPLAIN

Interactive ER Relationship Builder

Choose a template or modify the controls. The diagram and plain-language rule update together.

ENTITYSTUDENT(0, N)
ENROLS
ENTITYCOURSE(0, N)
Entity Relationship Total participation uses a double line
06 • MODEL DEPENDENT IDENTITY

A Weak Entity Cannot Be Identified by Its Own Attributes Alone

STRONG ENTITY

EMPLOYEE

employee_id, name

HASidentifying relationship
WEAK ENTITY

DEPENDENT

dependent_name, birth_date

Existence dependent

A dependent cannot exist in this database without an owning employee.

Partial key

dependent_name distinguishes dependents only within one employee.

Full identification

(employee_id, dependent_name) uniquely identifies a dependent.

Total participation

Every weak entity participates in its identifying relationship.

07 • MODEL INHERITANCE & ABSTRACTION

Enhanced ER Concepts Handle Richer Domains

TOP-DOWN

Specialization

Start with EMPLOYEE and form FACULTY and STAFF subtypes based on distinguishing properties.

EMPLOYEEISAFACULTYSTAFF
BOTTOM-UP

Generalization

Recognize common properties of CAR and TRUCK and create the VEHICLE supertype.

CARTRUCKISAVEHICLE
RELATIONSHIP AS A UNIT

Aggregation

Treat a relationship and its entities as a higher-level object when it must participate in another relationship.

EMPLOYEEWORKS_ONPROJECTMONITORED BY MANAGER

Disjoint vs overlapping

Disjoint: one entity belongs to at most one subtype. Overlapping: it may belong to several.

Total vs partial completeness

Total: every supertype entity must enter a subtype. Partial: some may remain only in the supertype.

08 • CHECK YOUR UNDERSTANDING

Six Formative Concept Checks

Use the explanation to correct the underlying modelling idea, not only the selected option.

1. Which requirement most strongly suggests an entity?

2. Where should “grade” be placed in Student enrols in Course?

3. A student can join many clubs and each club has many students. Cardinality?

4. Total participation means:

5. What identifies a weak entity instance?

6. Creating Faculty and Staff from Employee is:

Answered correctly: 0 of 6
09 • EXPLAIN & PREPARE

University, Design and Interview Practice

2-MARK QUESTIONS
  1. Define entity and entity set.
  2. What is a composite attribute?
  3. Define cardinality ratio.
  4. What is total participation?
  5. What is a partial key?
5-MARK QUESTIONS
  1. Explain attribute types with notation and examples.
  2. Compare cardinality and participation.
  3. Explain weak entities with an identifying relationship.
  4. Differentiate specialization and generalization.
DESIGN / INTERVIEW QUESTIONS
  1. Design ER models for library and hospital systems.
  2. When should a relationship become an associative entity?
  3. Can a weak entity have attributes?
  4. How do you validate an ER model with users?
  5. How would you model multiple phone numbers?
Show the ER design checklist used before submission
  1. Every entity has a meaningful singular name and identifier.
  2. Every attribute describes the correct entity or relationship.
  3. Multivalued and composite values are shown deliberately.
  4. Every relationship has a readable verb name.
  5. Both sides have justified minimum and maximum participation.
  6. Weak entities include owner, identifying relationship and partial key.
  7. Subtype constraints are marked when specialization is used.
  8. The model is tested with normal cases, empty cases and exceptions.

You Can Now Defend an ER Model

  • Requirements supply candidate entities, attributes, relationships and constraints.
  • Keys identify entities; attribute types express structure and value behavior.
  • Cardinality gives the maximum while participation gives the minimum.
  • Weak entities combine an owner key with a partial key.
  • Specialization, generalization and aggregation model richer semantics.
  • A correct diagram is validated against business rules and counterexamples.
COURSE CHECKPOINT

Mark this level when you can convert a paragraph into a justified ER model and explain every constraint.

Saved in this browser only.