Relational Model and Normalization
Cheat sheet · https://pcornel.dk/topic.php?topic=6162
Answer
The relational model stores data in tables (relations) of rows and columns linked by keys; normalization removes redundancy (1NF, 2NF, 3NF) so each fact is stored once.
Remember
Normalise to 3NF by default; denormalise deliberately for performance with a plan to keep copies consistent.
First checks
SELECT col, count(*) … GROUP BY col HAVING count(*)>1— first check for this topicpsql -c "SELECT now(), version();"— PostgreSQL reachable and versionmysql -e "SELECT NOW(), VERSION();"— MariaDB/MySQL reachable and versionsqlcmd -S <server> -Q "SELECT @@VERSION"— SQL Server reachable and version
Verify in this order
entities → tables with keys → relationships by foreign keys → normalised schema
Where it usually breaks
Storing lists in a text column prevents indexing and integrity checks.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6162