Menu

How to Design a Final Year Project Database: ERD and Normalization to 3NF in MySQL
📰

How to Design a Final Year Project Database: ERD and Normalization to 3NF in MySQL

DEV Community: mysql·Fyp Services·9 days ago
#4x6U1xJd
#devtomysql#devto#dev#table#room
Long article (408 words) — no AI summary yet.
Reading 0:00
15s threshold

Most FYP database chapters fall apart in the viva for one simple reason: the student drew an ERD that looks nice, then built whatever tables felt right in phpMyAdmin. The first time an examiner asks "why is this field in this table?", there is no answer.

Here is the order that survives questioning, using a hostel management system as the example:

1. Entities come from the problem statement, not from screens.

Read your problem statement and underline the nouns your system must remember: Student, Room, Allotment, Payment, Complaint. If a noun never gets stored, it is not an entity. If it gets stored and changes over time, it probably is.

2. Draw the ERD before you create a single table.

For each pair of entities, write the relationship in a sentence: "One Room has many Allotments over time, but one Allotment belongs to exactly one Room." That sentence gives you cardinality, and cardinality tells you where the foreign key lives. Panels ask about relationships far more than about box shapes.

3.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.