← Databases Explained

Lesson 2 of 3 · 10 min

Relationships

Tables connect through foreign keys: an orders table references a customers table.

One-to-many is the workhorse: one customer, many orders.

Practice

Sketch students and courses tables and decide how enrollments connect them.

Quiz

+50 pts
1. Tables connect via…
2. One customer, many orders is…

Optional resources

Your lesson toolkit

No purchase or partner signup is required to complete this course or earn quiz points.

These are official product links, not active affiliate links. Learnly does not currently earn a commission from them.

DB Fiddle

Try table designs and queries with fictional sample data.

Browser SQL playground; never paste private or personal data.

Explore tool