Computing 9691 · 8

Databases

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

Reset
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. ..................................................................................................................................…

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

Database concepts · 2 marks

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

2014 October-November · Paper 31 · Q3(a)(i)

Database concepts · 2 marks · official answer ready

(i) Circle above the two foreign keys in this database design. [2]

2014 October-November · Paper 31 · Q3(a)(ii)

Database concepts · 2 marks · official answer ready

(ii) These two foreign keys form two relationships. Complete the entity-relationship (E-R) diagram to show them. [2]

2014 October-November · Paper 31 · Q3(c)

DDL and DML · 3 marks · official answer ready

(c) The final design for the customer table is: Customer(CustomerID, CustomerName, CustAddress, TelNo, DateRegistered) Customer 065 has contacted the gallery to tell them his new …

2014 October-November · Paper 32 · Q3(a)(i)

Database concepts · 2 marks · official answer ready

(i) Circle the two foreign keys in this database design. [2]

2014 October-November · Paper 32 · Q3(a)(ii)

Database concepts · 2 marks · official answer ready

(ii) These three entities form two relationships. Complete the entity-relationship (E–R) diagram to show them. [2]

2014 October-November · Paper 33 · Q3(a)(i)

Database concepts · 2 marks · official answer ready

(i) Circle above the two foreign keys in this database design. [2]

2014 October-November · Paper 33 · Q3(a)(ii)

Database concepts · 2 marks · official answer ready

(ii) These two foreign keys form two relationships. Complete the entity-relationship (E-R) diagram to show them. [2]

2014 October-November · Paper 33 · Q3(c)

DDL and DML · 3 marks · official answer ready

(c) The final design for the customer table is: Customer(CustomerID, CustomerName, CustAddress, TelNo, DateRegistered) Customer 065 has contacted the gallery to tell them his new …

2014 May-June · Paper 31 · Q2(b)(i)

Database concepts · 1 mark · official answer ready

(i) Draw the entity-relationship (E-R) diagram. [1]

2014 May-June · Paper 31 · Q2(b)(ii)

Database concepts · 4 marks · official answer ready

(ii) Complete the description for the Vehicle and Depot tables using the notation: TableName(Attribute1, Attribute2, …) where the underlined attribute indicates the primary key. V…

2014 May-June · Paper 31 · Q2(c)(ii)

Database concepts · 2 marks · official answer ready

(ii) Explain how this relationship between Customer and Hire is modelled using the given attributes. [2] 5

2014 May-June · Paper 31 · Q2(d)

DDL and DML · 2 marks · official answer ready

(d) The following Data Manipulation Language (DML) query is run: SELECT RegistrationNo FROM Hire WHERE (StartDate < Now() ) AND (ReturnDate > Now() ); Note: Now() is a function wh…

2014 May-June · Paper 31 · Q2(f)

DDL and DML · 2 marks · official answer ready

(f) On 05/04/2014, customer 085 booked a vehicle hire. This hire will start on 13/04/2014. When the customer arrives, the receptionist will check their driving licence. If the lic…

2014 May-June · Paper 32 · Q2(b)(i)

Database concepts · 1 mark · official answer ready

(i) Draw the entity-relationship (E-R) diagram. [1]

2014 May-June · Paper 32 · Q2(b)(ii)

Database concepts · 4 marks · official answer ready

(ii) Complete the description for the Vehicle and Depot tables using the notation: TableName(Attribute1, Attribute2, …) where the underlined attribute indicates the primary key. V…