Sonzaschool
Back

O-Level · Form 2 · Vocational · Electronics and Computer

Computer Programming

Designing entity relationship diagrams

about 5 minutes to read

Discussions
Topics in this sectionImplementing database modelling and relationships3 topics
  1. Designing relations
  2. Designing entity relationships
  3. Designing entity relationship diagrams

An Entity-Relationship (ER) diagram is a visual tool that helps us plan and design a database by showing how different pieces of information are connected. Before we build a database to store data on a computer, we first draw an ER diagram to understand what data we need, what groups the data belongs to, and how these groups relate to each other.

An entity is a real-world object or concept that has its own data and can be identified uniquely. In a database, each entity becomes a table.

Types of Entities

  • Strong entity: Can exist on its own and has a primary key (unique identifier) — for example, a STUDENT can exist without depending on another entity.
  • Weak entity: Cannot exist on its own and depends on another entity — for example, a BOOK_COPY depends on the BOOK entity.

How to Identify Entities

Ask yourself: "What things do I need to store information about?" These become your entities.


How you'll be assessedProcess assessment · Outcome assessment · Knowledge assessment

Process assessment

  • Create ER diagrams based on provided scenarios.
  • Use standard notations (e.g. Chen, Crow's Foot).
  • Include attributes, keys, and relationships.

Outcome assessment

A complete and accurate ER diagram illustrating entities, relationships, and attributes in a logical structure is designed.

Knowledge assessment

Detailed knowledge of:

Method used: The student should explain how to:

  • create and interpret ER diagrams.

Principles: The student should explain the principle of:

  • diagrammatic representation of databases.

Theories: The student should explain:

  • Types of notations (e.g., Chen, Crow's Foot).

Circumstantial knowledge:

Detailed knowledge about:

  • Common pitfalls in diagram design.

Question

What is an entity in an Entity-Relationship (ER) diagram?

Sign in to submit your answer and have it count toward your mastery.

Sign in to practice

Tutor

Stuck? Ask me anything about this topic.

Sign in to ask the Sonza AI Tutor about this question.

Sign in to ask

Discussions

No questions yet

Sign in to ask
Loading discussions…