Computer Science For First Examination In 2021 9618 · 8

8.3 DDL and DML

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

Reset
2025 October-November · Paper 11 · Q2(c)(i)

DDL and DML · 2 marks · official answer ready

(i) Write a Structured Query Language (SQL) script to delete all placements that have been completed. .............................................................................…

2025 October-November · Paper 11 · Q2(c)(ii)

DDL and DML · 4 marks · official answer ready

(ii) Write an SQL script to return the total number of placements completed by the student with ID LDEA01 at the company with ID NEAM. The total should be given an appropriate nam…

2025 October-November · Paper 12 · Q4(c)

DDL and DML · 4 marks · official answer ready

(c) Write an SQL script to return the number of containers stored in the database for the ship with the name Caledonia. ...........................................................…

2024 October-November · Paper 12 · Q6(b)(ii)

DDL and DML · 3 marks · official answer ready

(ii) The database also has the table INVOICE that stores data about each invoice that is sent to a customer. Example data from the table INVOICE is given. InvoiceID DateSent Amoun…

2024 May-June · Paper 11 · Q6(c)(ii)

DDL and DML · 3 marks · official answer ready

(ii) Write an SQL script to return the number of events that each player has completed. ...........................................................................................…

2023 October-November · Paper 13 · Q3(b)(ii)

DDL and DML · 4 marks · official answer ready

(ii) Write the Structured Query Language (SQL) script to return the total number of courses that have started after 9 September 2023. The value returned must have an appropriate f…

2023 May-June · Paper 11 · Q2(b)(iv)

DDL and DML · 5 marks · official answer ready

(iv) The database tables are repeated here for reference: BIRD_TYPE(BirdID, Name, Size) BIRD_SEEN(SeenID, BirdID, Date, Location, PersonID) PERSON(PersonID, FirstName, LastName, E…

2022 October-November · Paper 13 · Q2(c)

DDL and DML · 4 marks · official answer ready

(c) Complete the SQL script to return the total number of telescopes owned by the company whose ID begins with HW. SELECT ........................................... (............…

2021 October-November · Paper 11 · Q5(c)(i)

DDL and DML · 3 marks · official answer ready

(i) Complete the following DML statements to return the number of cars for sale in each shop. SELECT COUNT(.........................................................) FROM ........…

2021 October-November · Paper 11 · Q5(c)(ii)

DDL and DML · 2 marks · official answer ready

(ii) Complete the DML statement to include the following car in the table CAR. Field Data RegistrationNumber 123AA Make Tiger Model Lioness NumberOfMiles 10500 ShopID 12BSTREET ..…

2021 October-November · Paper 13 · Q5(c)(i)

DDL and DML · 3 marks · official answer ready

(i) Complete the following DML statements to return the number of cars for sale in each shop. SELECT COUNT(.........................................................) FROM ........…

2021 October-November · Paper 13 · Q5(c)(ii)

DDL and DML · 2 marks · official answer ready

(ii) Complete the DML statement to include the following car in the table CAR. Field Data RegistrationNumber 123AA Make Tiger Model Lioness NumberOfMiles 10500 ShopID 12BSTREET ..…

2021 May-June · Paper 11 · Q7(b)(iii)

DDL and DML · 1 mark · official answer ready

(iii) Bobby wants to name his database SHOPORDERS. Write a Data Definition Language (DDL) statement to define a new database with the name SHOPORDERS. ............................…

2021 May-June · Paper 13 · Q7(b)(iii)

DDL and DML · 1 mark · official answer ready

(iii) Bobby wants to name his database SHOPORDERS. Write a Data Definition Language (DDL) statement to define a new database with the name SHOPORDERS. ............................…