ms access relationships junction table

trexsteve

New Member
Joined
Jun 16, 2013
Messages
1
Hi i am new to ms access databases, really struggling with my tables relationships


my database has more than one many-to-many relationships, for example one instructor can have many classes, one class can have different instructors, one client could have different instuctors, one instructor could have many clients and all at different times, on different days


eg: 18/06/2013 Time: 8:00, Instructor: Steven, Class :Pilates, Clients: Bob,
Andrew,
Jess,
Alex


Time: 9:30, Instructor: Thomas, Class :Yoga, Clients: Alexis,
Kerry,
Alex,
Bob

22/06/2013 Time: 10:00, Instructor: Greg, Class :Reformer, Clients: Bob,
Harry,
Jess,
Alex


Time: 16:30, Instructor: Fred, Class :Yoga, Clients: Alexis,
Kerry,
Alex,
Alexandra
(Each day can have many of these at any times)


really struggling on this one, its probably really simple though any help on relationship diagram would be greatly appreciated

i know that i have to use one or more junction tables not sure how to correctly do that, coz i wanted to form with subforms to display the above examples and one just for instructors, and build queries to display one for each for the entire month and weekly
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Curious, Is this a class project/homework?


I like to think of a junction table as a way to define a relationship between two records in the same table or two different table.

Example of Same table: People. Create an addition table, People Relations, that links to records together. Like Father, brother, etc.

Example of Two tables: People and Organizations. Create an addition table, Organization Relations, that link to a peple rcord to a Organization record. Like Employee, Owner, etc.

... for example one instructor can have many classes, one class can have different instructors ...

The basic idea is:
You have two objects, classes and people.. One relationship (junction table) between them the objects, instructor.

Tables:
1) Classes
2) People
3) Instructors - This is your junction table between Classes and people.

Example Instructors table design

-InstuctorID (Primary Key - auto number)
-ClassID (foreign key - long - link to Classes table Primary Key)
-PeopleID (foreign key - long - link to People table Primary Key)
-InstructorTypeID (foreign key to lookup table.)
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top