8.3 DDL and DML
21 questions in this subtopic. Open a question to solve it and check the official answer.
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.…
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…
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. ........................................…
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 ..............…
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…
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 …
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 …
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…
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…
DDL and DML · 2 marks · official answer ready
(c) Additional data are to be stored about each artist as follows: Artist(ArtistName, Nationality, YearBorn, YearDied) The following Data Manipulation Language (DML) query is run.…
DDL and DML · 3 marks · official answer ready
(e) The painting ‘The Guitar Player’ was in the ‘Secrets and Silence’ exhibition. The ExhibitionPainting table has a record for this. In the record: • The painting is referred to …
DDL and DML · 6 marks
3 [3] (f) The table to store the race data has the following design: RACE(RaceDate, RaceStartTime, StartVenue, Distance, OrganisingClubName) Write a Data Manipulation Language (DM…
DDL and DML · 6 marks
3 [3] (f) The table to store the hire data has the following design: HIRE(HireID, CarRegistrationNo, HireBookingDate, HireStartDate, NoOfDays, HireRate, CustomerID) Write a Data M…
