Fan Trap Database Systems
Fan Trap Database Systems
DATABASE SYATEM
2420040302-003
MA’AM MAHSAL
Entity-Relationship (ER) diagrams are a crucial part of designing databases. They help us visualize
how data is structured and connected. However, even the best designs can have flaws if we don’t
carefully think through the relationships. One common issue is the Fan Trap. This problem can make
it hard—or even impossible—to retrieve the information we need from a database. In this
assignment, I’ll explain what a Fan Trap is, why it happens, and how we can fix it to build better
databases.
A Fan Trap happens when the connections between entities (tables) in an ER diagram aren’t
designed properly. As a result, the database doesn’t fully capture the relationships between the
data.
In simple terms, it’s like trying to solve a puzzle where some of the pieces don’t fit because they’re
missing important connections. This can lead to problems when we try to query the database for
specific information.
1. Misunderstanding Relationships:
When designing the database, the real-world connections between data aren’t fully
understood or are oversimplified.
2. Indirect Connections:
Entities rely on a middle entity to connect, but there’s no direct link between them.
3. Over-Simplified Diagrams:
Trying to keep things “too simple” can sometimes leave out critical relationships.
Relationships:
The Problem:
If someone asks, “Which professor is teaching a specific course?”, the database can’t answer. That’s
because there’s no direct connection between professors and courses in the ER diagram. Both are
only linked to the department, which isn’t enough to answer this query.
This is a classic Fan Trap—where two entities are indirectly connected, but the link isn’t detailed
enough to meet real-world needs.
For example:
Solution:
Conclusion
Fan Traps are a common challenge in database design, but they’re also preventable. By carefully
analyzing the relationships between entities and validating our designs, we can avoid these issues
and build robust databases. A good ER diagram doesn’t just show how data is stored—it also ensures
the database can provide meaningful insights when queried. Fixing Fan Traps is an important step
toward achieving this goal.