Databases
121 questions. Open a question to solve it and check the official answer.
Database concepts · 2 marks
(i) Circle the two foreign keys in Design 1. [2]
Database concepts · 2 marks · official answer ready
(ii) There are relationships between the entities BAND, VENUE and BOOKING. Complete the entity-relationship (E-R) diagram to show the entity names and two relationships. [2]
DDL and DML · 3 marks · official answer ready
(c) The managers need to display the band names and performance dates for the bands that have played at the Dominion Theatre. Write a Data Manipulation Language (DML) query to do …
DDL and DML · 3 marks · official answer ready
(d) A booking already exists in the database for the band RUS on the 6th August 2016. A manager needs to change the start time to 21:00. Write a DML command to update this record.…
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, …
Database concepts · 2 marks · official answer ready
(ii) Draw an entity-relationship (E-R) diagram showing the relationships between CUSTOMER, PRODUCT and ORDER. [2]
Database concepts · 2 marks · official answer ready
(iii) Describe how the relationship between CUSTOMER and ORDER is implemented. ....................................................................................................…
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…
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…
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…
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…
Database concepts · 1 mark · official answer ready
(ii) Name the type of relationship between the TUTOR-INSTRUMENT and TUTOR tables. .................................................................................................…
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. ........................................…
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…
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 ..............…
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…
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, …
Database concepts · 2 marks · official answer ready
(ii) Draw an entity-relationship (E-R) diagram showing the relationships between CUSTOMER, PRODUCT and ORDER. [2]
Database concepts · 2 marks · official answer ready
(iii) Describe how the relationship between CUSTOMER and ORDER is implemented. ....................................................................................................…
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…
