Question 7(b) 2018 · May-June · Paper 12 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 7
Part (b)
Question 1
mark per bullet to max 2 for explanation
Question 3
- Referential integrity is making sure tables do not try to reference data
- A primary key cannot be deleted unless all dependent records are
- Cascading delete
- A primary key cannot be updated unless all dependent records are
- Cascading update / edit
- Every foreign key value has a matching value in the corresponding
- The foreign keys must be the same data type as the corresponding
- A UserName cannot be deleted from the USER table if they have a
- If UserName is updated in USER table, it must also be updated in
- Cannot create/edit a record in TEXTPOST / PHOTO without a matching
Show text version of question
Question 7
Part (b)
Question 7
A social media website has a relational database, WEBDATA, that stores the site’s information.
The database has three tables to store users’ details, and details of the images and text that they post.
USER(UserName, FirstName, SecondName, DateOfBirth) PHOTO(PhotoID, UserName, Comment, UploadDate) TEXTPOST(PostID, UserName, DateOfPost, TheText)
Part (b)
A database administrator decides to enforce referential integrity.
Use an example from the database WEBDATA to explain what is meant by referential integrity.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
Question 13
Why this question appears here
99% assigned-topic match · Databases › Database concepts
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_s18_qp_12.pdf
