Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > TechHelp > Directory > Access > Many to Many > Infographic Many-to-Many Relationships by Richard Rost >
Back to Many-to-Many    Comments List
Pinned | Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Infographic Many-to-Many Relationships
Richard Rost 
          
7 days ago
Infographic Many-to-Many Relationships
Richard Rost OP  @Reply  
          
7 days ago

Kevin Yip  @Reply  
      
7 days ago
Also, each student should only take (pay for) each course once.  So I would set both CustomerID and CourseID in the junction table as PK:

CustomerID   PK
CourseID   PK
DateEnrolled
CertificationExpires

Or you could create an unique index of CustomerID + CourseID in the junction table.

I ran into these situations often in my old job.  Rather than assigning an arbitrary PK for the junction table, I would often check to see if existing fields should be used as PK instead.
Richard Rost OP  @Reply  
          
7 days ago
Valid points. Lots of ways you can handle that, but you also might need to allow for the possibility of students retaking courses. In that case, you'd need to allow the same customer to sign up for the same course more than once. Again, though, now we're talking business rules, not database rules.
Add a Reply Upload an Image
Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 10/15/2026 7:37:48 PM. PLT: 2s