

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Null Values
incomplete
2: Constraints
incomplete
3: Primary Keys
incomplete
4: Foreign Keys
incomplete
5: Schema
incomplete
6: Relational Databases
incomplete
7: Relational vs. Non-Relational DBs
incomplete
This lesson's interactive features are locked, please to keep using them
We have been using the term relational quite a bit. It's time we actually go over what that means!
A relational database is a type of database that stores data so that it can be easily related to other data. For example, a user can have many tweets. There's a relationship between a user and their tweet.
In a relational database:
Id called the primary key.Here is an example of a small relational database. This database has 3 tables, Students, Courses, and StudentCourses. The StudentCourses table manages the relationship between the Students and Courses tables.
Id of 2.StudentCourses table for the records that match his StudentId.Id of 3.CourseId column in the StudentCourses table.