+ 2
what are you supposed to do in the case of turnary degree when converting the ER diagram to relational schema?
database relational schema
4 Respuestas
+ 2
Hi Mohamed,
You can create an intermediate table linking all 3 tables. Considering you have tables A, B and C, and each one has keys idA, idB and idC, then your ternary table will be something like T, with columns idA, idB and idC.
If you give more details your model, I could give you an example.
+ 1
I get it thanks a lot sir
0
thanks so much for your reply Eduardo
but what is the Prime Key going to be in this T table?
0
You can have a composite pk, with all 3 keys, or have an auto generated Id,(autoincrement). All depends of your requirements.