r/DatabaseHelp • u/Agil7054 • Apr 10 '18
Help with a Ternary Relationship
In the relationship shown below, any teacher can recommend any book to any class. How can I change it so each teacher can only recommend one book to any specific class and that book can only be from a unique list for each teacher.
For example, Mr. Phillips can only recommend Frankenstein XOR Dracula XOR Strange Case of Dr. Jekyl to a class while Ms. Morgan can only recommend Jane-Eyre XOR Wuthering Heights XOR Moby-Dick to a class. And how do I make it so each teacher can only make a recommendation to a specific class once. So Mr. Phillips can recommend Dracula to class 1 and Ms. Morgan can also recommend Moby-Dick to class 1 but she can't also recommend Wuthering Heights to class 1.
View all comments
Show parent comment
1
u/imguralbumbot Apr 11 '18
Hi, I'm a bot for linking direct images of albums with only 1 image
https://i.imgur.com/Rt3K3pa.png
Source | Why? | Creator | ignoreme | deletthis