Computing 9691 · 8

8.3 DDL and DML

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

Reset
2016 May-June · Paper 33 · Q1(c)

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 …

2016 May-June · Paper 33 · Q1(d)

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

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 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(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 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…

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 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(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(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 32 · 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 33 · Q2(c)

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

2014 May-June · Paper 33 · Q2(e)

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 …

2013 October-November · Paper 31 · Q3(f)

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…

2013 October-November · Paper 33 · Q3(f)

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…