Oracle Database SQL — Question 124
Examine this business rule:
Each student can work on multiple projects and each project can have multiple students.
You must design an Entity Relationship (ER) model for optimal data storage and allow for generating reports in this format:
STUDENT_ID FIRST_NAME LAST_NAME PROJECT_ID PROJECT_NAME PROJECT_TASK
Which two statements are true? (Choose two.)
Answer options
- A. PROJECT_ID must be the primary key in the PROJECTS entity and foreign key in the STUDENTS entity.
- B. STUDENT_ID must be the primary key in the STUDENTS entity and foreign key in the projects entity.
- C. An associative table must be created with a composite key of STUDENT_ID and PROJECT_ID, which is the foreign key linked to the students and projects entities.
- D. The ER must have a many-to-many relationship between the STUDENTS and PROJECTS entities that must be resolved into one-to-many relationships.
- E. The ER must have a one-to-many relationship between the STUDENTS and PROJECTS entities.
Correct answer: C, D
Explanation
Answer C is correct because an associative table is necessary to manage the many-to-many relationship between students and projects, using a composite key of STUDENT_ID and PROJECT_ID. Answer D is also correct as it accurately describes the relationship that needs to be resolved. The other options misrepresent the nature of the relationships or the use of keys in the ER model.