Past-paper question · 2017 May-June · Paper 12 · Q1(b)(ii)

Question 1(b)(ii) 2017 · May-June · Paper 12 · 5 marks

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

Official answer for Question 1

Part (b)

(ii)

Question 5

✓
Table
✓
Primary key
✓
Foreign keys(s)
✓
Explanation
✓
(if any)
✓
SHOP
✓
ShopID
✓
None
✓
SUPPLIER
✓
SupplierID
✓
None
✓
SHOP-SUPPLIER
✓
ShopID AND
✓
ShopID OR
✓
To create a link
✓
SupplierID
✓
SupplierID
✓
with the SHOP or
✓
SUPPLIER
✓
(or both)
✓
table.
✓
•
✓
SHOP has primary key ShopID and SUPPLIER has primary key
✓
SupplierID

Question 1

✓
•
✓
SHOP-SUPPLIER has primary key ShopID + SupplierID

Question 1

✓
•
✓
Both SHOP and SUPPLIER show foreign key as ‘None’

Question 1

✓
•
✓
SHOP-SUPPLIER shows foreign key ShopID or SupplierID

Question 1

✓
•
✓
Explanation for SHOP-SUPPLIER foreign key describes ShopID or
✓
SupplierID creating a link

Question 1

Mark scheme 9608_s17_ms_12.pdf →

Show text version of question

Question 1

Part (b)

(ii)

Question 1

Some shops belong to the Rainbow Retail buying group. They buy their goods from one or more

suppliers.

Each shop has:

  • a unique shop ID
  • a single retail specialism (for example, food, electrical, garden).

Each supplier has:

  • a unique supplier ID
  • a similar single specialism recorded.

Rainbow Retail creates a relational database to record data about the shops and their suppliers.

The entity-relationship (E-R) diagram for the relationship between the SHOP and SUPPLIER tables is shown.

SHOP SUPPLIER

(ii)

Complete the following table to show for each database table:

  • the primary key
  • the foreign key(s) (if any):
  • ° Each table may contain none, one or more foreign key(s). ° For a table with no foreign key, write ‘None’.

  • an explanation for the use of any foreign key.

Table Primary key Foreign key(s) Explanation (if any)

SHOP

SUPPLIER

SHOP–SUPPLIER

[5]
Topic relevance

Why this question appears here

82% 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_s17_qp_12.pdf

Keep practising this topic