This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
A relational database is all about relationships. When talking about relationships within a database, there are three types of relationship.
1. One-to-one
2. Many-to-one (also used One-to-many)
3. Many-to-many
Learn More About Relational Databases
A many-to-one relationship can also be referred to as a one-to-many depending on how you are referencing the relationship. Genre_id in our Media table links to a genre table which includes a genre_id and the genre. This is a Many-to-one relationship. Many media items link to one genre. We could also say that One genre has Many media items using a One-to-Many relationship.
https://teamtreehouse.com/library/database-foundations
https://teamtreehouse.com/library/sql-basics
Database Diagram
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up