SQL
One to One and One to Many Relationships
The two simplest relationships and the single rule that decides where the foreign key goes - plus when a one to one split is actually worth it.
One to one, one to many, many to many and junction tables.
2 notes
The two simplest relationships and the single rule that decides where the foreign key goes - plus when a one to one split is actually worth it.
Two tables that both have many of each other need a third table. Learn the junction table pattern, its key design, and how to query and count across i...