SQL 81 🛢️ Entity-Relationship Modeling and Cardinality
A database schema is not designed by typing CREATE TABLE. It is designed by understanding what the application needs to store, how the pieces relate, and what constraints the relationships impose. The Entity-Relationship model is the notation that captures this understanding before a single line of SQL is written. An entity is a thing the…