Past-paper question · 2018 May-June · Paper 12 · Q7(b)

Question 7(b) 2018 · May-June · Paper 12 · 3 marks

Original past-paper question for 7(B)
Original past-paper question for 7(B)
Reveal official mark-scheme answer Official mark-scheme answer for 7(B)

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
✓
which does not exist // A value of one attribute of a table exists as a
✓
value of another attribute in a different table
  • A primary key cannot be deleted unless all dependent records are
✓
already deleted
  • Cascading delete
  • A primary key cannot be updated unless all dependent records are
✓
already updated
  • Cascading update / edit
  • Every foreign key value has a matching value in the corresponding
✓
primary key
  • The foreign keys must be the same data type as the corresponding
✓
primary key
✓
1 mark for a suitable example
✓
e.g.
  • A UserName cannot be deleted from the USER table if they have a
✓
related photo/textpost
  • If UserName is updated in USER table, it must also be updated in
✓
PHOTO and TEXTPOST tables
  • Cannot create/edit a record in TEXTPOST / PHOTO without a matching
✓
entry in USER table

Mark scheme 9608_s18_ms_12.pdf →

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

Topic relevance

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

Keep practising this topic