Foundation: the core computer science a fresher is asked about · Chapter 3
Keys and relationships
Learn how primary, foreign and composite keys tie tables together, the three kinds of relationship, and what happens to child rows when a parent row is deleted.
In this chapter
- From four notebooks to tables
- A primary key says which row is which
- A foreign key points at a parent row
- Composite keys: the lines of one bill
- One-to-one, one-to-many, many-to-many
- What happens to the children when a parent row goes
- The questions this chapter answers
Locked: needs a plan
You can read chapter 1 free. Chapter 3 is the next one.
What you can do now, free: re-read chapter 1 and try its problems.
What a plan gives you: all chapters of the track you pick and their checks. Starter is ₹229 a month or ₹1,699 a year. It renews until you cancel, and you can cancel any time. Paid plans open at launch.
Why is this locked?
Chapter 1 of every track is free, so you can see how the track reads. The rest of a track and its checks come with a plan, or open as you pass each chapter's check.
The price is for one period, a month or a year. A plan renews until you cancel.