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(StudentID, FirstName, House) | AOrder(OrderID, StudentID FK) -> Student(StudentID) | |
| 2Result(StudentID FK, SubjectID FK, Mark) | BA table called Student with three fields; the underlined StudentID is its primary key, which identifies each record | |
| 3The primary key is underlined in a schema so it stands out as the field that uniquely identifies each record | CThe foreign key is in Order, not Student. Student holds the primary key that StudentID FK in Order points to. | |
| 4To trace a link between tables, find the foreign key in one table and match it to the primary key of another table | DA table whose StudentID and SubjectID fields are foreign keys linking each result to a student and a subject | |
| 5Order(OrderID, StudentID FK, Qty) Student(StudentID, Name) Reading: Student has the FK | EThe primary key is the underlined TeacherID, not Room. Room is an ordinary field that may repeat across teachers. | |
| 6Teacher(TeacherID, Name, Room) Reading: Room is the primary key | FProduct(ProductID, Name, Price) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Table(PK, field, FK) — A relational schema lists each table and its fields, marks the primary key (underlined) and foreign keys (FK), and shows how tables link.Student(StudentID PK, Name, House)Result(ResultID PK, StudentID FK, Mark)Subject(SubjectID PK, Name)
Result(ResultID PK, SubjectID FK, Mark)Student(StudentID PK, Name)
Orders(OrderID PK, StudentID FK, Total)
Link: Orders.StudentID -> Student.StudentIDAuthor(AuthorID PK, Name)
Book(BookID PK, AuthorID FK, Title)
Book.AuthorID -> Author.AuthorID