Databases
26 questions. Open a question to solve it and check the official answer.
Database concepts · 2 marks · official answer ready
(i) Circle above the two foreign keys in this database design. [2]
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]
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 …
Database concepts · 2 marks · official answer ready
(i) Circle the two foreign keys in this database design. [2]
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]
Database concepts · 2 marks · official answer ready
(i) Circle above the two foreign keys in this database design. [2]
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]
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 …
Database concepts · 1 mark · official answer ready
(i) Draw the entity-relationship (E-R) diagram. [1]
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…
Database concepts · 2 marks · official answer ready
(ii) Explain how this relationship between Customer and Hire is modelled using the given attributes. [2] 5
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…
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…
Database concepts · 1 mark · official answer ready
(i) Draw the entity-relationship (E-R) diagram. [1]
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…
Database concepts · 2 marks · official answer ready
(ii) Explain how this relationship between Customer and Hire is modelled using the given attributes. [2] 5
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…
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…
Database concepts · 1 mark
(i) Draw this relationship on the E-R diagram above. [1]
Database concepts · 4 marks · official answer ready
(ii) Complete the description for the Gallery and Exhibition tables. Use the notation: TableName(Attribute1, Attribute2, ...) where the underlined attribute indicates the primary …
