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 | |
|---|---|---|
| 1[students] box with studentId PK, firstName, house | AOne entity drawn as a labelled box, with its attributes listed inside and the primary key marked PK | |
| 2[results] box with studentId FK, subjectId FK, mark | B[students] ------ [orders] | |
| 3A relationship is drawn as a line joining two entity boxes | C[students] --places-- [orders] | |
| 4The relationship line is labelled with a verb that says how the entities connect | DThe foreign key fields are marked PK. They link to other entities, so they should be marked FK. The orders box needs its own PK, such as orderId. | |
| 5[students] [orders] (two boxes with no line between them) | EAn entity box where the FK marks show which fields link to other tables | |
| 6[orders] box with studentId PK and productId PK | FThere is no relationship line, so the ERD does not show that students and orders are related. Draw a line joining the two boxes. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ERD — An entity relationship diagram draws each entity as a labelled box and each relationship as a line joining two boxes. Boxes list attributes, with PK and FK marked.[Student]
studentId PK
firstName[Result]
studentId FK
mark[Student] --- [Result]label = "places"
[Student] --places-- [Order]Entity: Student
[Student]
studentId PK