Computing 9691 · 8

Databases

21 questions. Open a question to solve it and check the official answer.

Reset
2015 October-November · Paper 31 · Q1(b)(i)

Database concepts · 2 marks · official answer ready

(i) A revised design is produced: CUSTOMER(CustomerID, CustomerName, City) PRODUCT(ProductID, ProductDescription, RetailPrice) ORDER(CustomerID, OrderDate, ProductID, Dispatched, …

2015 October-November · Paper 31 · Q1(b)(ii)

Database concepts · 2 marks · official answer ready

(ii) Draw an entity-relationship (E-R) diagram showing the relationships between CUSTOMER, PRODUCT and ORDER. [2]

2015 October-November · Paper 31 · Q1(b)(iii)

Database concepts · 2 marks · official answer ready

(iii) Describe how the relationship between CUSTOMER and ORDER is implemented. ....................................................................................................…

2015 October-November · Paper 31 · Q1(c)

DDL and DML · 3 marks · official answer ready

(c) Write a data manipulation language (DML) query to find the ProductID of all products with: • a minimum retail price of $100 • a maximum retail price of $200 Use the keywords S…

2015 October-November · Paper 31 · Q1(d)

DDL and DML · 3 marks · official answer ready

(d) Study this DML command. UPDATE ORDER SET Dispatched = TRUE WHERE CustomerID = 647 AND OrderDate = #12/10/15# Tick (✓) the three correct statements: Creates a new record in the…

2015 October-November · Paper 31 · Q1(e)(i)

DDL and DML · 3 marks · official answer ready

(i) Customer 447 placed an order for product 982 on 17 October 2015. Complete the following DML command to create a new order record. The order has not yet been dispatched. INSERT…

2015 October-November · Paper 31 · Q1(e)(ii)

Database concepts · 2 marks · official answer ready

(ii) Referential integrity requires that the data is consistent in two related tables. There is a relationship between the PRODUCT and ORDER tables. Using these two tables, explai…

2015 October-November · Paper 32 · Q1(d)(ii)

Database concepts · 1 mark · official answer ready

(ii) Name the type of relationship between the TUTOR-INSTRUMENT and TUTOR tables. .................................................................................................…

2015 October-November · Paper 32 · Q1(d)(iii)

DDL and DML · 3 marks · official answer ready

(iii) Write a data manipulation language (DML) query to find the TutorID of all saxophone tutors. Use the keywords SELECT, FROM and WHERE. ........................................…

2015 October-November · Paper 32 · Q1(d)(iv)

Database concepts · 3 marks · official answer ready

(iv) Study this DML command. UPDATE TUTOR-INSTRUMENT SET Instrument = 'piano' WHERE TutorID = 49 AND Instrument = 'guitar' Write TRUE or FALSE for each of the six statements: TRUE…

2015 October-November · Paper 32 · Q1(e)(i)

DDL and DML · 2 marks · official answer ready

(i) A new record needs to be added to the TUTOR-INSTRUMENT table. The tutor with TutorID 57 can now teach the flute. Complete the following DML command. INSERT INTO ..............…

2015 October-November · Paper 32 · Q1(e)(ii)

Database concepts · 2 marks · official answer ready

(ii) Referential integrity requires that the data is consistent in two related tables. There is a relationship between the TUTOR and TUTOR-INSTRUMENT tables. Using these two table…

2015 October-November · Paper 33 · Q1(b)(i)

Database concepts · 2 marks · official answer ready

(i) A revised design is produced: CUSTOMER(CustomerID, CustomerName, City) PRODUCT(ProductID, ProductDescription, RetailPrice) ORDER(CustomerID, OrderDate, ProductID, Dispatched, …

2015 October-November · Paper 33 · Q1(b)(ii)

Database concepts · 2 marks · official answer ready

(ii) Draw an entity-relationship (E-R) diagram showing the relationships between CUSTOMER, PRODUCT and ORDER. [2]

2015 October-November · Paper 33 · Q1(b)(iii)

Database concepts · 2 marks · official answer ready

(iii) Describe how the relationship between CUSTOMER and ORDER is implemented. ....................................................................................................…

2015 October-November · Paper 33 · Q1(c)

DDL and DML · 3 marks · official answer ready

(c) Write a data manipulation language (DML) query to find the ProductID of all products with: • a minimum retail price of $100 • a maximum retail price of $200 Use the keywords S…

2015 October-November · Paper 33 · Q1(d)

DDL and DML · 3 marks · official answer ready

(d) Study this DML command. UPDATE ORDER SET Dispatched = TRUE WHERE CustomerID = 647 AND OrderDate = #12/10/15# Tick (✓) the three correct statements: Creates a new record in the…

2015 October-November · Paper 33 · Q1(e)(i)

DDL and DML · 3 marks · official answer ready

(i) Customer 447 placed an order for product 982 on 17 October 2015. Complete the following DML command to create a new order record. The order has not yet been dispatched. INSERT…

2015 October-November · Paper 33 · Q1(e)(ii)

Database concepts · 2 marks · official answer ready

(ii) Referential integrity requires that the data is consistent in two related tables. There is a relationship between the PRODUCT and ORDER tables. Using these two tables, explai…

2015 May-June · Paper 31 · Q1(b)(v)

Database concepts · 2 marks

(v) Explain how the relationship is implemented. ..................................................................................................................................…