Save
...
Part 4
4.3 Building large databases
4.3.3 Joining things up
Save
Share
Learn
Content
Leaderboard
Learn
Created by
King Mole
Visit profile
Cards (9)
Joining table
A table that lists every
relationship
between every entity in a
relational
database
View source
Relationships are stored in a
joining table
View source
Joining
table
Each record represents a single
relationship
between entities
Student keys
appearing more than once shows an individual student studies many courses
Course codes listed
multiple times
shows the course is being taken by many students
View source
Many-to-many relationship
A relationship where an entity on one side is related to
multiple entities
on the
other side
, and vice versa
View source
Querying a
relational
database to find courses taken by a student
1. Query Student_Table to get student's
key
2. Use student's
key
to query Student_Allocation_Table to get
course
codes
3. Query Course_Table to get
course titles
View source
The
complexity
of the database is
hidden
from the user
View source
Entities
in the committee meeting database
Committee
Member
View source
Key
field
A
field
that
uniquely identifies
each record in a table
View source
A
joining table
is needed to represent the many-to-many relationship between
committees
and members
View source