Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1STUDENT ||---|< RESULT | AOne PRODUCT can appear in many ORDERS. | |
| 2CLASS ||--o< STUDENT | Bresults.studentId REFERENCES students(studentId) | |
| 3In a one-to-many relationship, the crow's foot end is the side that holds the foreign key. | CA bar and circle at the CLASS end mean zero or one, not many. The line needs a crow's foot to show many classes. | |
| 4Reading an ERD aloud: start at one entity, follow the line, and say 'one' for a bar and 'many' for a crow's foot. | DOne class can have zero or many students. The circle marks the many side as optional. | |
| 5STUDENT >|---|| RESULT (foreign key studentId placed in STUDENT) | EThe crow's foot is drawn at STUDENT, which says many students per result. The foreign key also sits on the one side. | |
| 6TEACHER ||--o| CLASS (a teacher has many classes) | FOne student can have many results, but each result belongs to exactly one student. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
crow's foot — ERD notation where a single bar at a line's end means one and a three-pronged crow's foot means many. The crow's foot end is the foreign key side of the relationship.# | means one, < means many
Teacher |--< Class
# One teacher has many classes# | means one, < means many
Teacher |--< Class
# One teacher has many classesHouse |--< Student
# The foreign key is in the Student table# | means one, < means many
House |--< Student
# One House has many Students# | = mandatory, o = optional
Teacher |--o< Class
# A teacher may have zero classes