Unit 3: A3 Databases
Topic 3.3: SQL Questions
Practice 20 exam-style questions for IB Computer Science Topic 3.3. Review the question stems below, then unlock the full Question Bank to access markschemes, model answers, and AI grading.
1Construct3 marks
2026
A clinic holds a single view, APPOINTMENTS, with the fields ClientID, ClientName, StaffID, StaffName, VisitedOn and Service, where Service holds values such as Eye test, Hearing test and Hearing aid fitting.
Construct an SQL SELECT query that lists the names of clients whose service includes the word hearing.
A client's name should appear only once.
Markscheme and model answer locked
Unlock Question2Explain4 marks
2026
Explain the difference between an INNER JOIN and a LEFT JOIN, with an example of when each is appropriate.
Markscheme and model answer locked
Unlock Question3Construct3 marks
2026
Construct an SQL statement to return the name and email of all customers in the city of Lisbon, sorted by name.
Markscheme and model answer locked
Unlock Question4Describe2 marks
2026
Describe the effect of omitting the WHERE clause from an UPDATE statement.
Markscheme and model answer locked
Unlock Question5Describe3 marks
2026
Describe the difference between DELETE, TRUNCATE and DROP.
Markscheme and model answer locked
Unlock Question6Choose1 mark
2026
Choose the statement that changes values in rows that already exist.
Markscheme and model answer locked
Unlock Question7Explain3 marks
2023
A cinema's booking database has been designed as an ERD. Explain how a data definition language (DDL) is used to implement this design.
Markscheme and model answer locked
Unlock Question8Describe3 marks
2015
Describe how SQL is used to record a new order in an online shop's ORDERS table.
Markscheme and model answer locked
Unlock Question9Explain3 marks
2023
An online shop's developers use both DDL and DML. Explain the difference between them in this context.
Markscheme and model answer locked
Unlock Question10Describe2 marks
2014
A shop runs UPDATE PRODUCT SET Price = Price * 1.1 WHERE Category = 'Toys';. Describe what this statement does.
Markscheme and model answer locked
Unlock Question11Explain2 marks
2015
Explain why an UPDATE to one customer's address should use the primary key in its WHERE clause.
Markscheme and model answer locked
Unlock Question12Describe2 marks
2014
A club runs DELETE FROM MEMBER WHERE LastVisit < '2024-01-01';. Describe the effect of this statement.
Markscheme and model answer locked
Unlock Question13Identify3 marks
2014
Identify the three parts of an SQL UPDATE statement that changes one pupil's form group.
Markscheme and model answer locked
Unlock Question14State1 mark
2014
State the SQL keyword used to add a new row to a table.
Markscheme and model answer locked
Unlock Question15Explain2 marks
2015
Explain why a DELETE on a CUSTOMER row can be refused when ORDER rows refer to it.
Markscheme and model answer locked
Unlock Question16Identify3 marks
2014
Identify three SQL statements used to change the data held in a school's tables.
Markscheme and model answer locked
Unlock Question17Describe3 marks
2015
Describe how SQL updates a warehouse's stock level after a delivery.
Markscheme and model answer locked
Unlock Question18Describe3 marks
2015
Describe how SQL removes expired coupons from a COUPON table.
Markscheme and model answer locked
Unlock Question19Explain3 marks
2020
Explain how one SQL UPDATE can change many records at once in a shop's price list.
Markscheme and model answer locked
Unlock Question20Identify4 marks
2017
Identify four SQL commands a database developer uses to change data or structure in a sports club's database.
Markscheme and model answer locked
Unlock QuestionReady to practice Topic 3.3?
Get instant AI feedback on your answers, view detailed markschemes, and track your progress across all IB Computer Science topics.
Start Practising Now