Hi i have ER scheme with an recursive associations many to many with primary keys for example:
______(0,N)_________
ID | base
course preparatory
|___advanced_________/
(1,N)
where course is entity and preparatory is association nad course have ID primary key.
My question is:
course have ID primary key but, preparatory association?
I suppose that preparatory association have base and advanced primary keys and ID_course foreign key:
course primary key:ID
preparatory primary key:base,advanced,ID_course foreign key:ID_course
is it right?
question from:https://stackoverflow.com/questions/66055577/recursive-associations-many-to-many-and-primary-keys-and-foreign-keys