Question 4
OCR Computer Science June 2023 Computer principles (H046-01)AS8 marks
On the specification
- (a)
- 1.3 Exchanging data
- (b)
- 1.3 Exchanging data
- (c)(i)
- 1.3 Exchanging data
- (c)(ii)
- 1.3 Exchanging data
- (c)(iii)
- 1.3 Exchanging data
Question text
4 OCRConfectionery is a sweet manufacturing company. They want to use a relational database to store details of the orders their customers make. (a) State two benefits of using a relational database instead of a flat file database. 1 2 [2] (b) One customer can order as many different products as they like in the same order. A customer can also place as many orders as they like. One product can be ordered multiple times in the same order or ordered by multiple different customers. Complete the entity relationship diagram to show the relationships between the Product, Customer and Order entities. Customer Product Order [2] (c) The order table has these fields. OrderID OrderDate OrderAmount CustomerID ProductID (i) State the difference between a primary key and a foreign key. [2] (ii) State one foreign key in the order table. [1] (iii) State why CustomerID would not make a suitable primary key in the order table. [1]