Case 1: members, sections and roles

A member can be in several sections and hold several roles. You create a table with a composite key and connect all tables with the right cascade options.

In short: MemberID and Role together form the primary key of the Roles table. FeeGroups has text as its key and therefore needs cascade update; section memberships and volunteer hours get cascade delete, dues do not.

Task 1: roles with a composite key

Task Members take on roles such as treasurer or coach, some several. Create the table Roles: MemberID (Number, Long Integer) and Role (Short Text, 40) together form the primary key, plus Since (Date/Time).

The lesson on normalization shows why junction tables are built this way.

Task 2: relationships with cascade options

Task Create the five relationships of the club database, all with referential integrity: FeeGroups to Members (with cascade update), Members to SectionMembers (with cascade delete), Sections to SectionMembers, Members to Dues and Members to VolunteerHours (with cascade delete).

FeeGroups 4 rows, 2 columns
FeeGroupBaseFee
Adult120.00
Junior60.00
Concession80.00
Social40.00
Members 60 rows, 10 columns
MemberIDFirstNameLastNameBirthDatePostalCodeCityEmailJoinedLeftOnFeeGroup
1ChloeWright8 Jan 2010LS6 2ABLeedschloe.wright1@example.com25 Jan 2026Junior
2RubyClark12 Nov 2016BD1 1HYBradfordruby.clark2@example.com7 Mar 2023Junior
3LiamWright19 Jan 1978LS11 5QALeedsliam.wright3@example.com5 May 2009Adult
4MiaSmith14 Jun 1963LS6 2ABLeeds1 Mar 2001Adult
5JackWalker16 Apr 1971LS11 5QALeedsjack.walker5@example.com24 Feb 2015Adult
6RubyWalker19 May 1960LS1 1URLeedsruby.walker6@example.com8 Feb 19801 Sep 2025Adult
7SophiaHughes24 Jun 1955LS11 5QALeedssophia.hughes7@example.com24 Jan 2008Adult
8SophiaTaylor19 Jul 1988LS1 1URLeedssophia.taylor8@example.com7 May 1997Social
9MiaKing14 Jun 2014LS11 5QALeedsmia.king9@example.com23 Jun 2025Junior
10AvaTaylor3 Apr 2011LS11 5QALeedsava.taylor10@example.com27 Dec 2018Junior
11LucasJohnson20 Jan 1997WF1 1HAWakefieldlucas.johnson11@example.com9 Sep 2025Adult
12LucasBrown7 Jan 1950LS11 5QALeedslucas.brown12@example.com15 May 2016Adult
13ChloeDavies22 Oct 1980WF1 1HAWakefield24 Jul 2024Social
14OliviaWalker11 Oct 1955LS1 1URLeedsolivia.walker14@example.com23 Nov 1981Adult
15HenryBrown23 Mar 2012BD1 1HYBradfordhenry.brown15@example.com12 Aug 2024Junior
16ChloeClark8 Jan 1949LS11 5QALeedschloe.clark16@example.com28 Mar 2003Social
17LeoHughes4 Apr 1971LS1 1URLeedsleo.hughes17@example.com11 Nov 199927 Apr 2026Adult
18HenryTaylor15 May 2002WF1 1HAWakefieldhenry.taylor18@example.com2 Jan 2011Concession
19HenryTaylor24 Mar 2011BD1 1HYBradfordhenry.taylor19@example.com28 Dec 2018Junior
20SophiaKing11 Oct 1994BD1 1HYBradfordsophia.king20@example.com1 Sep 1986Adult
21GraceBaker4 Nov 2011LS6 2ABLeedsgrace.baker21@example.com31 May 2018Junior
22NoahEvans2 Nov 2017BD1 1HYBradford25 Jul 2026Junior
23JamesHughes23 Jan 2003LS1 1URLeedsjames.hughes23@example.com20 Oct 2014Concession
24JamesTaylor17 Apr 2013BD1 1HYBradfordjames.taylor24@example.com4 Nov 2019Junior
25LucasHall4 Dec 1952BD1 1HYBradfordlucas.hall25@example.com5 May 1996Social
26HenrySmith28 Dec 1990BD1 1HYBradfordhenry.smith26@example.com15 Dec 2020Concession
27EmmaHughes26 Apr 1948WF1 1HAWakefieldemma.hughes27@example.com1 May 1987Adult
28EmmaGreen25 Jan 2014WF1 1HAWakefieldemma.green28@example.com15 Feb 2025Junior
29JamesBaker23 Jan 1978LS11 5QALeedsjames.baker29@example.com8 Apr 20129 Jul 2025Concession
30SamGreen16 Apr 2003LS6 2ABLeedssam.green30@example.com21 Apr 2021Adult
31SamWilson28 Aug 1996LS1 1URLeeds8 Aug 2024Adult
32ChloeHall11 Dec 2000LS6 2ABLeedschloe.hall32@example.com17 Sep 2021Adult
33SamWilson19 Oct 2018LS6 2ABLeedssam.wilson33@example.com24 Nov 2024Junior
34EmmaWright8 Mar 1981WF1 1HAWakefieldemma.wright34@example.com27 Aug 1999Adult
35SophiaWard3 Feb 1973LS6 2ABLeedssophia.ward35@example.com24 Aug 2009Adult
36LiamEvans15 Oct 1959LS1 1URLeedsliam.evans36@example.com2 Nov 2025Adult
37NoahBrown4 Dec 1985BD1 1HYBradfordnoah.brown37@example.com26 Oct 2023Adult
38GraceClark3 Apr 2000WF1 1HAWakefieldgrace.clark38@example.com18 Jul 2026Adult
39SamDavies3 Feb 1957BD1 1HYBradfordsam.davies39@example.com21 Sep 2013Concession
40OliverBrown16 Dec 1990BD1 1HYBradford11 Jun 2022Social
41NoahWalker8 Jun 1950LS6 2ABLeedsnoah.walker41@example.com5 Jun 2001Adult
42JackGreen26 Nov 2010LS11 5QALeedsjack.green42@example.com5 Nov 2021Junior
43LiamClark1 Jun 2016WF1 1HAWakefieldliam.clark43@example.com26 Oct 2026Junior
44GraceWalker5 Jan 2016LS11 5QALeedsgrace.walker44@example.com14 May 202216 Aug 2025Junior
45JamesTaylor27 Aug 1958LS6 2ABLeedsjames.taylor45@example.com6 Mar 2026Concession
46LeoSmith20 Jan 1948LS1 1URLeedsleo.smith46@example.com2 Jul 2000Social
47SophiaBrown9 Feb 2013LS6 2ABLeedssophia.brown47@example.com17 Mar 2023Junior
48JackGreen26 Dec 1976LS11 5QALeedsjack.green48@example.com17 Feb 2022Adult
49EmmaWard21 Feb 2000LS6 2ABLeeds27 Mar 2024Adult
50NoahBaker21 Jul 1965LS11 5QALeedsnoah.baker50@example.com21 May 1982Adult
51EllaKing10 Oct 1973LS1 1URLeedsella.king51@example.com27 Nov 1998Social
52LucasWilson5 Jul 2014WF1 1HAWakefieldlucas.wilson52@example.com21 Aug 2026Junior
53EmmaBrown21 Jun 1948WF1 1HAWakefieldemma.brown53@example.com17 Dec 2013Concession
54NoahWalker3 Mar 2010WF1 1HAWakefieldnoah.walker54@example.com26 Aug 2026Junior
55RubySmith12 Sep 1964LS11 5QALeedsruby.smith55@example.com4 Nov 2017Concession
56SamWalker1 Apr 2013LS6 2ABLeedssam.walker56@example.com17 Sep 2021Junior
57MiaWright18 Feb 2018LS6 2ABLeedsmia.wright57@example.com6 Apr 2025Junior
58EllaJohnson26 May 1976LS6 2ABLeeds23 Aug 2009Adult
59EmmaWright7 Sep 1998LS6 2ABLeedsemma.wright59@example.com28 Aug 2020Adult
60NoahBrown16 Mar 1951LS11 5QALeedsnoah.brown60@example.com12 Apr 2005Social
SectionMembers 68 rows, 3 columns
MemberIDSectionIDSince
1325 Jan 2026
229 Jan 2024
3121 Nov 2015
421 Mar 2014
546 Sep 2020
6516 Jan 2018
7324 Oct 2010
9223 Jun 2025
10227 Dec 2018
1119 Sep 2025
12211 Dec 2022
1427 Mar 2019
15312 Aug 2024
17522 Nov 2015
1832 Jan 2011
18130 Oct 2024
19428 Dec 2018
1928 Jul 2021
2046 Oct 2007
21431 May 2018
21331 May 2018
22325 Jul 2026
22225 Jul 2026
2329 Oct 2025
23520 Oct 2014
2434 Nov 2019
24417 Dec 2022
26529 Jan 2026
27221 May 2021
28215 Feb 2025
29427 Sep 2026
30421 Apr 2021
30521 Apr 2021
3138 Aug 2024
3128 Aug 2024
32413 Oct 2026
33224 Nov 2024
34129 Sep 2020
35527 Mar 2010
3612 Nov 2025
3652 Nov 2025
37426 Oct 2023
38518 Jul 2026
38218 Jul 2026
3927 Oct 2026
41520 May 2026
41215 Dec 2015
4225 Nov 2021
43226 Oct 2026
44419 May 2024
44214 May 2022
45526 Jun 2026
4546 Mar 2026
47417 Mar 2023
48525 Aug 2025
49227 Mar 2024
50410 Jul 2026
52321 Aug 2026
5313 Nov 2025
53422 Apr 2017
54426 Aug 2026
55321 Sep 2018
56411 Mar 2024
56217 Sep 2021
5736 Apr 2025
58123 Nov 2022
58223 Aug 2009
59228 Aug 2020
Sections 5 rows, 4 columns
SectionIDSectionLeaderExtraFee
1TennisMs Lang80.00
2GymnasticsMs Roth0.00
3SwimmingMr Berg40.00
4VolleyballMs Young20.00
5RunningMr Kaya0.00
Dues 110 rows, 6 columns
DueIDMemberIDDueYearAmountPaidOnReminderLevel
12202560.0023 Mar 20250
232025200.0030 Apr 20250
342025120.0013 Apr 20250
452025140.0026 Jan 20250
562025120.0018 Mar 20250
672025160.0018 Mar 20250
78202540.0030 Apr 20250
89202560.0014 Apr 20250
910202560.0030 Apr 20250
10112025200.0019 Feb 20250
11122025120.008 Apr 20250
1213202540.005 Feb 20250
13142025120.002 Mar 20250
14152025100.0026 Apr 20250
1516202540.0015 Mar 20250
16172025120.006 Mar 20250
17182025200.0015 Jan 20250
1819202580.0012 Apr 20250
19202025140.0022 Mar 20250
20212025120.0016 Mar 20250
2123202580.0028 Feb 20250
22242025120.005 Apr 20250
2325202540.003 Apr 20250
2426202580.0025 Jan 20250
25272025120.0018 Feb 20250
2628202560.0018 Feb 20250
27292025100.0017 Mar 20250
28302025140.0026 Jan 20250
29312025160.0014 Mar 20250
30322025140.0020 Apr 20250
3133202560.004 Mar 20250
32342025200.0014 Jan 20250
33352025120.006 Apr 20250
34362025200.002 Feb 20250
35372025140.002 Feb 20250
3639202580.0011 Jan 20250
3740202540.006 Feb 20250
38412025120.0010 Jan 20250
3942202560.0016 Jan 20250
4044202580.0031 Jan 20250
4146202540.0025 Apr 20250
4247202580.0017 Apr 20250
43482025120.0021 Mar 20250
44492025120.0015 Mar 20250
45502025140.0029 Apr 20250
4651202540.002
47532025180.0015 Mar 20250
48552025120.003 Mar 20250
4956202580.0019 Mar 20250
50572025100.0029 Apr 20250
51582025200.0014 Mar 20250
52592025120.0015 Mar 20250
5360202540.0011 Jan 20250
5412026100.000
552202660.000
5632026200.0027 Mar 20260
5742026120.0031 Jan 20260
5852026140.0028 Jan 20260
5972026160.001
608202640.0013 Apr 20260
619202660.002
6210202660.001 Feb 20260
63112026200.0021 Mar 20260
64122026120.0013 Mar 20260
6513202640.0026 Feb 20260
66142026120.0025 Jan 20260
67152026100.001 Mar 20260
6816202640.0031 Jan 20260
69172026120.007 Mar 20260
70182026200.0019 Feb 20260
7119202680.0030 Apr 20260
72202026140.0016 Mar 20260
73212026120.0022 Mar 20260
74222026100.002
7523202680.0024 Mar 20260
76242026120.000
7725202640.000
7826202680.0014 Jan 20260
79272026120.0018 Apr 20260
8028202660.0028 Mar 20260
81302026140.0031 Mar 20260
82312026160.0015 Jan 20260
83322026140.0010 Mar 20260
8433202660.002
85342026200.006 Mar 20260
86352026120.0030 Apr 20260
87362026200.0015 Apr 20260
88372026140.0013 Jan 20260
89382026120.0011 Mar 20260
9039202680.0013 Feb 20260
9140202640.0012 Mar 20260
92412026120.001
9342202660.0024 Feb 20260
9443202660.0010 Mar 20260
95452026100.0016 Mar 20260
9646202640.002 Apr 20260
9747202680.0013 Mar 20260
98482026120.005 Feb 20260
99492026120.001
100502026140.000
10151202640.0028 Jan 20260
102522026100.0024 Apr 20260
103532026180.0015 Apr 20260
10454202680.0019 Jan 20260
105552026120.001
10656202680.002
107572026100.0019 Feb 20260
108582026200.006 Feb 20260
109592026120.008 Mar 20260
11060202640.0022 Apr 20260
VolunteerHours 107 rows, 5 columns
EntryIDMemberIDWorkDateHoursTask
1411 Mar 20253Grounds care
24115 Mar 20253Bake sale
34916 Mar 20254Club fair
4417 Mar 20252Tournament crew
51230 Mar 20252Grounds care
6582 Apr 20252.5Bake sale
7487 Apr 20253Grounds care
8189 Apr 20253Bake sale
95812 Apr 20252Clubhouse repairs
10517 Apr 20252.5Tournament crew
11517 Apr 20254Tournament crew
123217 Apr 20252Grounds care
134921 Apr 20255Clubhouse repairs
142724 Apr 20252Club fair
154125 Apr 20252Grounds care
165529 Apr 20253Grounds care
17347 May 20252.5Clubhouse repairs
18269 May 20253Club fair
195513 May 20255Club fair
202614 May 20254Tournament crew
213017 May 20253Clubhouse repairs
222024 May 20252Bake sale
235928 May 20252Grounds care
24597 Jun 20252.5Clubhouse repairs
254914 Jun 20252.5Clubhouse repairs
263916 Jun 20255Clubhouse repairs
273418 Jun 20254Bake sale
285020 Jun 20252Tournament crew
291224 Jun 20252Bake sale
301226 Jun 20252Bake sale
311827 Jun 20252Tournament crew
32557 Jul 20252Tournament crew
332612 Jul 20254Grounds care
345912 Jul 20255Club fair
354119 Jul 20252Tournament crew
362722 Jul 20252.5Grounds care
372624 Jul 20254Grounds care
38208 Aug 20254Grounds care
39309 Aug 20255Clubhouse repairs
405817 Aug 20252.5Grounds care
413520 Aug 20254Clubhouse repairs
42423 Aug 20253Club fair
432023 Aug 20254Grounds care
443927 Aug 20252.5Tournament crew
45391 Sep 20255Tournament crew
46202 Sep 20253Tournament crew
4744 Sep 20253Tournament crew
48595 Sep 20254Bake sale
492718 Oct 20255Clubhouse repairs
50358 Nov 20252.5Club fair
515010 Nov 20254Club fair
523714 Nov 20252.5Club fair
534922 Nov 20255Clubhouse repairs
545826 Nov 20253Grounds care
551227 Nov 20254Tournament crew
561830 Nov 20254Bake sale
575030 Nov 20253Clubhouse repairs
583015 Mar 20262.5Club fair
592317 Mar 20265Bake sale
604119 Mar 20263Tournament crew
61414 Apr 20262.5Bake sale
62346 Apr 20262Bake sale
632710 Apr 20262Bake sale
641417 Apr 20264Tournament crew
653717 Apr 20262Clubhouse repairs
662023 Apr 20265Grounds care
673024 Apr 20265Club fair
681817 May 20264Grounds care
691426 May 20265Tournament crew
701231 May 20263Tournament crew
712731 May 20262.5Tournament crew
72373 Jun 20265Grounds care
73313 Jun 20264Grounds care
741814 Jun 20262.5Grounds care
751418 Jun 20264Grounds care
763224 Jun 20262Grounds care
774826 Jun 20265Tournament crew
78481 Jul 20262Tournament crew
79313 Jul 20264Bake sale
805910 Jul 20262Grounds care
813114 Jul 20263Bake sale
823428 Jul 20263Bake sale
83342 Aug 20262.5Grounds care
844820 Aug 20264Clubhouse repairs
853221 Aug 20262.5Bake sale
861825 Aug 20264Grounds care
87302 Sep 20262Clubhouse repairs
88596 Sep 20265Club fair
89369 Sep 20262.5Tournament crew
901213 Sep 20264Tournament crew
912713 Sep 20262.5Club fair
924119 Sep 20262.5Bake sale
931222 Sep 20264Grounds care
94201 Oct 20264Clubhouse repairs
95553 Oct 20262.5Tournament crew
96314 Oct 20265Grounds care
97238 Oct 20262Grounds care
985315 Oct 20263Grounds care
99532 Nov 20262.5Bake sale
100366 Nov 20263Grounds care
101377 Nov 20265Tournament crew
102378 Nov 20262.5Tournament crew
103129 Nov 20262Tournament crew
104323 Nov 20265Grounds care
1052324 Nov 20263Bake sale
1061427 Nov 20265Clubhouse repairs
107328 Nov 20262.5Clubhouse repairs

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

The lesson on relationships explains both options.

Common mistakes

AutoNumber instead of a composite key

With an ID of its own as the key, the table allows the same role twice for the same member. To prevent that, you need the key made of both fields or a unique index over them.

Renaming a group without cascade update

Without cascade update, Access refuses to rename “Concession” while members have that group. Whoever deletes the relationship to rename it ends up with members in a group that no longer exists.

In real Access

  • You set the composite key in Design view: select both rows while holding Ctrl, then click Primary Key.
  • Fee groups, sections and roles are good candidates for lookup tables. A combo box on the form then shows valid values only.
  • Leaving members get a leaving date instead of being deleted; cascade delete is for the case where a record is removed entirely after the retention period.

How to check your result

  • Task 1: three test records are saved; Access rejects the second “Treasurer” for member 1 as a duplicate key, and “Chair” without a MemberID too.
  • Task 2: “Concession” is renamed to “Senior” and the members follow; member 1 (has dues) and section 5 (has members) cannot be deleted.

Next: case 2, Member lists and anniversaries

The tennis member list, the 2026 anniversaries and active members per section.

Go to case 2

Back to the course overview.

Write to us

Choose language

Select your preferred language