MajP
You've got your good things, and you've got mine.
- Local time
- Today, 14:53
- Joined
- May 21, 2018
- Messages
- 8,908
So lets pretend you have a table of courses
tblCourses tblCourses
And you have a list of books
tblBooks tblBooks
Some classes have more than one book, some classes resuse the same book. This is a many to many. A course has many books, and many books can support different courses. There is overlap.
tblBooksCourses tblBooksCourses
In other words using a query
Query1 Query1
History 101 uses books History1,2. History 201 continues with History 2 but uses another book EFG.
tblCourses tblCourses
CourseID_PK | CourseName |
---|---|
1 | History 101 |
2 | History 201 |
3 | Math 101 |
4 | Math 201 |
5 | English 101 |
6 | English 201 |
tblBooks tblBooks
BookID_PK | BookName |
---|---|
1 | Book History 1 |
2 | Book History 2 |
3 | Book EFG |
tblBooksCourses tblBooksCourses
bookCourseID | CourseID_FK | BookID_FK |
---|---|---|
1 | 1 | 1 |
2 | 1 | 2 |
3 | 2 | 2 |
4 | 2 | 3 |
Query1 Query1
CourseName | BookName |
---|---|
History 101 | Book History 1 |
History 101 | Book History 2 |
History 201 | Book History 2 |
History 201 | Book EFG |