Elements of the Ideal Table:
It represents a single subject, which can be an object or event that reduces the risk of potential data integrity problems.
It has a primary key. This is important for two reasons: A primary key uniquely identifies each record within a table, and it plays a key role (no pun intended) in establishing table relationships.
It does not contain multipart or multi-valued fields.
It does not contain calculated fields.
Ex:
Table orders:
This is bad table design.
Problems:
Redundancy → total_amount = unit_price * quantity is stored unnecessarily.
Inconsistency risk → If quantity is updated but total_amount isn’t recalculated, the data becomes wrong.
Extra storage → You’re saving the same information twice (derived + original).
Solution:
5. It does not contain unnecessary duplicate fields.
6.It contains only an absolute minimum amount of redundant data.