Databases: CAIE IGCSE Computer Science questions
CAIE IGCSE Computer Science past-paper questions on 9 Databases, 2017 to 2025, every variant, with mark schemes and examiner’s reports where available.
Getting your paper ready…
CAIE IGCSE Computer ScienceDatabases2,648 questions
Paper
All papers
Year
All years
Calculations
Difficulty
More filters
Exam boards
Cambridge IGCSE
Loading the full question list…
All 187 questions on Databases, as a list
- November 2025, Paper 2, Q1 (4 marks): Four descriptions of structured query language (SQL) keywords and five SQL keywords are given. Draw one line from each description to its matching keyword. Not
- November 2025, Paper 2, Q8(a) (1 mark): State the reason why ParentName is not appropriate as the primary key. [1]
- November 2025, Paper 2, Q8(b) (1 mark): Give the name of the field that should be the primary key. [1]
- November 2025, Paper 2, Q8(c) (2 marks): The database only uses these data types: • text • character • Boolean • integer • real • date/time. Complete the table to show the most appropriate data type fo
- November 2025, Paper 2, Q8(d) (2 marks): Complete the structured query language (SQL) statement to display only the names of the students who do not have permission to go on the trip. SELECT FROM WHERE
- November 2025 (variant 2), Paper 2, Q7(a) (1 mark): State the purpose of a primary key in a database table. [1]
- November 2025 (variant 2), Paper 2, Q7(b) (2 marks): Complete the table for each of the given data types, to identify one field from the table WATERFOWL that is most likely to use it. Each field must be different.
- November 2025 (variant 2), Paper 2, Q7(c) (3 marks): Give the output that would be produced by the structured query language (SQL) statement: SELECT Species, Length, Wingspan FROM WATERFOWL WHERE Family = "Swan" O
- November 2025 (variant 2), Paper 2, Q7(d) (4 marks): Complete the SQL statement to list only the species, family and lifespan of all waterfowl whose typical lifespan is at least 10 years, sorted in order of specie
- November 2025 (variant 3), Paper 2, Q8(a)(i) (1 mark): Give the name of the field that is most appropriate to be the primary key. [1]
- November 2025 (variant 3), Paper 2, Q8(a)(ii) (1 mark): State the reason for choosing this field for the primary key. [1]
- November 2025 (variant 3), Paper 2, Q8(b) (3 marks): Complete the structured query language (SQL) statement to list equipment not returned. The list must contain only the descriptions and student names. SELECT FRO
- June 2025, Paper 2, Q8(a)(i) (1 mark): Identify one appropriate data type for the field Return [1]
- June 2025, Paper 2, Q8(a)(ii) (1 mark): State the reason for the data type chosen. [1]
- June 2025, Paper 2, Q8(b) (2 marks): Write the output from the structured query language (SQL) statement: SELECT RouteID, Destination, Time FROM BUS WHERE Driver = "A Patel"; [2]
- June 2025, Paper 2, Q8(c) (3 marks): Complete the SQL statement to display only the destination of the buses that have a return. SELECT [3]
- June 2025 (variant 2), Paper 2, Q9(a) (2 marks): Complete the table by writing one appropriate field from CapitalCity for each data type. Each field must be different. Data type Field Boolean integer real text
- June 2025 (variant 2), Paper 2, Q9(b) (4 marks): Complete the structured query language (SQL) statement to list only the name, country and population of all the cities in CapitalCity from the continent of Asia
- June 2025 (variant 3), Paper 2, Q5(a) (4 marks): A computer store uses a database table COMPONENT to store the stock details of a range of components needed to build computer systems. Complete the table by giv
- June 2025 (variant 3), Paper 2, Q5(b) (4 marks): Complete the structured query language (SQL) statement to list only the unique identifier, component name and reorder date of all the components that have been
- March 2025, Paper 2, Q8(a) (2 marks): State the number of fields and records in this database table. Fields Records [2]
- March 2025, Paper 2, Q8(b) (2 marks): Identify the field in the database table that is most suitable to be the primary key and give one reason for your choice. Primary key field Reason [2]
- March 2025, Paper 2, Q8(c) (3 marks): Give the output from the structured query language (SQL) statement: SELECT City, Country, Population FROM MajorCity WHERE Continent = "South America" ORDER BY P
- March 2025, Paper 2, Q8(d) (4 marks): Complete the SQL statement to list only the code, city, country and continent of all the cities in the database table that are capital cities. SELECT [4]
- November 2024, Paper 2, Q10(a) (1 mark): State the number of records in this part of the database table. [1]
- November 2024, Paper 2, Q10(b)(i) (1 mark): Give the name of the field that would be used for the primary key. [1]
- November 2024, Paper 2, Q10(b)(ii) (1 mark): State the reason for choosing this field for the primary key. [1]
- November 2024, Paper 2, Q10(c) (2 marks): Write the output from this structured query language (SQL) statement. SELECT ChNo, WeightKg FROM CheeseStock WHERE SupplierCode = 'ABC'; [2]
- November 2024, Paper 2, Q10(d)(i) (3 marks): Complete this SQL statement to display only the name of all the cheeses that are out of stock. SELECT FROM WHERE ; [3]
- November 2024, Paper 2, Q10(d)(ii) (2 marks): Explain how one of the lines in your statement in part (d)(i) could be changed to display the same information. [2]
- November 2024 (variant 2), Paper 2, Q11(a) (2 marks): State the number of fields and records in this database table. Fields Records [2]
- November 2024 (variant 2), Paper 2, Q11(b) (1 mark): State the reason why the Type field would not be suitable as a primary key. [1]
- November 2024 (variant 2), Paper 2, Q11(c) (2 marks): The database uses only the data types: • alphanumeric • character • Boolean • integer • real • date/time. Complete the table to show the fields that could have
- November 2024 (variant 2), Paper 2, Q11(d) (3 marks): Give the output that would be produced by the structured query language (SQL) statement: SELECT RoomNo, Type, Guests, Rate$ FROM Booking28 WHERE Mon <> T; [3]
- November 2024 (variant 3), Paper 2, Q4 (6 marks): Complete the paragraph about databases. Use terms from the list. You may need to use a term more than once. Some of the terms in the list will not be used. fiel
- November 2024 (variant 3), Paper 2, Q11(a) (3 marks): Write the output from this structured query language (SQL) statement. SELECT MtNo, Name FROM BuildStock WHERE WeightKg = 75 ORDER BY PricePerBag; [3]
- November 2024 (variant 3), Paper 2, Q11(b)(i) (2 marks): Complete this SQL statement to display only the names of all the materials that are out of stock. SELECT FROM WHERE [2]
- November 2024 (variant 3), Paper 2, Q11(b)(ii) (2 marks): Explain how another SQL statement using a different field could be used to display the same information. [2]
- June 2024, Paper 2, Q9(a) (1 mark): State whether any of the given fields would be suitable as a primary key and give a reason for your answer. [1]
- June 2024, Paper 2, Q9(b) (5 marks): Complete the structured query language (SQL) statement to return the number of cans the shop has in stock. SELECT ( ) FROM WHERE = ; [5]
- June 2024 (variant 2), Paper 2, Q10(a) (1 mark): Identify the field that will be the most appropriate primary key for this table. [1]
- June 2024 (variant 2), Paper 2, Q10(b) (2 marks): Complete the table to identify the most appropriate data type for these fields in Contract Field Data type ContractNumber Months EndDate Sport [2]
- June 2024 (variant 2), Paper 2, Q10(c) (3 marks): Explain the purpose of these structured query language (SQL) statements. Statement 1: SELECT SUM (Months) FROM Contract; Statement 2: SELECT COUNT (News) FROM C
- June 2024 (variant 2), Paper 2, Q10(d) (2 marks): Complete this SQL statement to find the contract numbers of the subscribers that take both the news and sports services. SELECT FROM Contract WHERE AND ; [2]
- June 2024 (variant 3), Paper 2, Q8(a) (2 marks): State the number of fields and records in the database table. Fields Records [2]
- June 2024 (variant 3), Paper 2, Q8(b) (4 marks): Give the output that would be produced by the structured query language (SQL) statement: SELECT Model, Year, Engines FROM Hangar1 WHERE Engines > 1 ORDER BY Yea
- June 2024 (variant 3), Paper 2, Q8(c) (4 marks): Complete the SQL statement to display only the ID and model of all the aircraft that are airworthy. SELECT ID, ; [4]
- March 2024, Paper 2, Q9(a)(i) (1 mark): Give the name of the field that would be used for the primary key. [1]
- March 2024, Paper 2, Q9(a)(ii) (1 mark): State the reason for choosing this field for the primary key. [1]
- March 2024, Paper 2, Q9(b) (2 marks): Complete the table to identify the most appropriate data type for these fields in the table StorageUnits Field Data type SizeMetres Position Hoist StorageID [2]
- March 2024, Paper 2, Q9(c) (4 marks): Complete this structured query language (SQL) statement to display only the storage code, price and size in square metres of all the storage units where there i
- November 2023, Paper 2, Q9(a) (5 marks): The shop needs five fields for each record. Give a suitable name and data type for each field. Field 1 name Data type Field 2 name Data type Field 3 name Data t
- November 2023, Paper 2, Q9(b)(i) (1 mark): Give the name of the field that should be used for the primary key. [1]
- November 2023, Paper 2, Q9(b)(ii) (1 mark): State why this field is used as the primary key. [1]
- November 2023, Paper 2, Q9(c) (3 marks): Structured query language (SQL) is used to query data stored in this database. State what these SQL commands are used for. SELECT FROM WHERE [3]
- November 2023 (variant 2), Paper 2, Q10(a) (1 mark): State the number of records in this database table. [1]
- November 2023 (variant 2), Paper 2, Q10(b) (2 marks): Give the name of the field that is most suitable to be the primary key. State the reason for this choice. Field Reason [2]
- November 2023 (variant 2), Paper 2, Q10(c) (2 marks): The database only allows the data types: • Boolean • character • date/time • integer • real • text. Complete the table to show the most appropriate data type fo
- November 2023 (variant 2), Paper 2, Q10(d) (3 marks): Complete the structured query language (SQL) to return the code and breed of all the horses whose breed originated in Scotland. Code, Breed, FROM WHERE = "Scotl
- November 2023 (variant 3), Paper 2, Q9(a) (2 marks): State the number of records and fields in this part of the database table. Records Fields [2]
- November 2023 (variant 3), Paper 2, Q9(b)(i) (1 mark): Give the name of a field that could be used for the primary key. [1]
- November 2023 (variant 3), Paper 2, Q9(b)(ii) (1 mark): Explain why the sanctuary might decide not to use the field in (b)(i) as the primary key. [1]
- November 2023 (variant 3), Paper 2, Q9(b)(iii) (1 mark): A new field SpeciesID is added to the database table. This field contains a six-character code, for example Ph0001. Give a reason why this field would be a bett
- November 2023 (variant 3), Paper 2, Q9(c) (2 marks): Write the output that would be given by this structured query language (SQL) statement: SELECT Species, Description FROM PheasantList WHERE NumberBirds > 6; [2]
- November 2023 (variant 3), Paper 2, Q9(d) (4 marks): Complete this SQL statement to display all the species of pheasant where the birds are breeding and there were no young born this year: SELECT FROM WHERE ; [4]
- June 2023, Paper 2, Q10(a) (2 marks): Give the name of the field that is most suitable to be the primary key. State the reason for this choice. Field Reason [2]
- June 2023, Paper 2, Q10(b) (2 marks): The database uses the data types: • text • character • Boolean • integer • real • date/time. Complete the table to show the most appropriate data type for each
- June 2023, Paper 2, Q10(c) (4 marks): Complete the structured query language (SQL) query to return the television (TV) code, screen size and price of all Smart TVs in the database table. SELECT TVCo
- June 2023 (variant 2), Paper 2, Q10(a) (1 mark): Identify the field that will be the most appropriate primary key for this table. [1]
- June 2023 (variant 2), Paper 2, Q10(b) (2 marks): Complete the table to identify the most appropriate data type for the fields in Songs Field Data type SongNumber Title Recorded Minutes [2]
- June 2023 (variant 2), Paper 2, Q10(c) (3 marks): Explain the purpose of the structured query language (SQL) statements. SUM (Minutes) FROM Songs WHERE Genre = "rock"; COUNT (Title) FROM Songs WHERE Genre = "ro
- June 2023 (variant 3), Paper 2, Q10(a) (2 marks): State the number of fields and the number of records in this database table. Fields Records [2]
- June 2023 (variant 3), Paper 2, Q10(b) (1 mark): Describe the purpose of a primary key. [1]
- June 2023 (variant 3), Paper 2, Q10(c) (2 marks): The database uses the data types: • alphanumeric • character • Boolean • integer • real • date/time. Complete the table to show the most appropriate data type f
- June 2023 (variant 3), Paper 2, Q10(d) (3 marks): Give the output that would be produced by the structured query language (SQL) statement: SELECT Name, NumberGuest, Rate$ FROM Site1 WHERE NumberGuest >= 10; [3]
- March 2023, Paper 2, Q9(a) (1 mark): State the number of records in this part of the database table. [1]
- March 2023, Paper 2, Q9(b)(i) (1 mark): Give the name of the field that would be used for the primary key. [1]
- March 2023, Paper 2, Q9(b)(ii) (1 mark): State the reason for choosing this field for the primary key. [1]
- March 2023, Paper 2, Q9(c) (2 marks): Complete the table to identify the most appropriate data type for each field based on the data shown in the table BookList Field Data type CatNo Title Fiction P
- March 2023, Paper 2, Q9(d) (2 marks): Write the output from this structured query language (SQL) statement. SELECT CatNo, Title, Author FROM BookList WHERE StockLevel = 0; [2]
- March 2023, Paper 2, Q9(e) (2 marks): Complete this SQL statement to display all the titles by the author B Penn. SELECT FROM WHERE ; [2]
- November 2022, Paper 2, Q5(a) (2 marks): State which field you would choose for the primary key. Give a reason for your choice. Field Reason [2]
- November 2022, Paper 2, Q5(b) (3 marks): Complete the query-by-example grid to display only the item code and the manufacturer where the number in stock is below 10. Field: Table: Sort: Show: o o o o C
- November 2022 (variant 2), Paper 2, Q7(a)(i) (1 mark): State the most appropriate data type for the fields SubjectCode and Exams. SubjectCode Exams [1]
- November 2022 (variant 2), Paper 2, Q7(a)(ii) (1 mark): State one reason why the Candidates field could not be of the Boolean data type. [1] (ii) State one reason why the Candidates field could not be of the Boolean
- November 2022 (variant 2), Paper 2, Q7(b) (3 marks): Show the output given by the query-by-example grid. Field: SubjectName Practicals Candidates Table: ASSESS ASSESS ASSESS Sort: Ascending Show: 3 3 Criteria: <1
- November 2022 (variant 2), Paper 2, Q7(c) (3 marks): Complete the query-by-example grid to output the subjects with fewer than 150 candidates. Display only the SubjectCode, SubjectName and Candidates fields in ord
- November 2022 (variant 3), Paper 2, Q5(a) (2 marks): Identify which field you would choose for the primary key. State a reason for your choice. Field Reason [2]
- November 2022 (variant 3), Paper 2, Q5(b) (3 marks): Complete the query-by-example grid to display only the description and the country of origin for those items not in store. Field: Table: Sort: Show: Criteria: o
- June 2022, Paper 2, Q6(a) (1 mark): State the number of fields that are in the table GAMES. [1]
- June 2022, Paper 2, Q6(b) (1 mark): State one important fact that must be true for a field to be a primary key. [1]
- June 2022, Paper 2, Q6(c) (3 marks): Complete the query-by-example grid to output all the games that have no stock and that are on order with the supplier. Display only the GameID, GameName and Gam
- June 2022 (variant 2), Paper 2, Q5(a) (4 marks): Complete this query-by-example grid to display only the item number and the description of single use items, where the stock level is below the reorder level. F
- June 2022 (variant 2), Paper 2, Q5(b) (1 mark): Give a reason why the field SingleUse is not required in the table NURSE. [1]
- June 2022 (variant 3), Paper 2, Q6(a) (1 mark): State the name of the field that could contain Boolean data. [1]
- June 2022 (variant 3), Paper 2, Q6(b) (3 marks): Complete the query-by-example grid to output the planets with a longer year length and greater mass than Earth. Assume Earth’s year length is 365 days. Display
- March 2022, Paper 2, Q5 (6 marks): A database table, FLOWER, is used to keep a record of the type of flowers available to make up a bouquet. FlowerID Type Colour Style Fragrance CN001 Carnation P
- November 2021, Paper 2, Q5(a) (4 marks): Identify the most appropriate data type for each field from the four types shown. State the reason why you chose each data type. CATEGORY data type Reason PRICE
- November 2021, Paper 2, Q5(b) (3 marks): Complete the query-by-example grid to display only the category, manufacturer and code of the appliances with an economy rating of A. Field: Table: Sort: Show:
- November 2021 (variant 2), Paper 2, Q6(a)(i) (1 mark): Identify the field that could have a Boolean data type. [1]
- November 2021 (variant 2), Paper 2, Q6(a)(ii) (1 mark): Identify the field that should be used as the primary key. [1]
- November 2021 (variant 2), Paper 2, Q6(b) (4 marks): Complete the query-by-example grid to output the products intended for a cat that are in stock. Display only the primary key and the name of the products. The o
- November 2021 (variant 3), Paper 2, Q5(a) (4 marks): Select the most appropriate data type for each field from the four types shown. State the reason why you chose the data type. WEIGHT data type Reason PRICE data
- November 2021 (variant 3), Paper 2, Q5(b) (3 marks): Complete the query-by-example grid to display only the category, manufacturer, price and code of the computers with weight of less than 2.5 kilograms. Field: Ta
- June 2021, Paper 2, Q6(a) (1 mark): State the reason ID could be used as a primary key in the table GENRE. [1]
- June 2021, Paper 2, Q6(b) (1 mark): State the number of records in the table GENRE. [1]
- June 2021, Paper 2, Q6(c) (4 marks): Complete the query-by-example grid to display any genres with overdue books. Only display the ID, GenreName and Overdue fields in order of the number of books o
- June 2021 (variant 2), Paper 2, Q6 (5 marks): A database table, PLANT, is used to keep a record of plants sold by a nursery. The table has these fields: • NAME – name of plant • FLOWER – whether the plant f
- June 2021 (variant 3), Paper 2, Q6(a) (2 marks): Suggest suitable names for each of the fields described. Field name [2]
- June 2021 (variant 3), Paper 2, Q6(b) (4 marks): Complete the query-by-example grid to display cars where all four tyres have a tread depth of less than 2. Display all the fields, using the field names you cre
- March 2021, Paper 2, Q5(a) (3 marks): Select the most appropriate data type for these three fields from the four data types shown. Each data type must be different. State the reason why you chose th
- March 2021, Paper 2, Q5(b) (3 marks): Complete the query-by-example grid below to display only the price, filling and number sold of small chocolate bars that have sold fewer than 10 bars. Field: Ta
- November 2020, Paper 2, Q5(a) (2 marks): State how many fields and how many records are shown in the AIRLINE table. Number of Fields Number of Records [2]
- November 2020, Paper 2, Q5(b) (2 marks): Show the output that would be given by this query-by-example. Field: Airline name Number of employees Head office Share price Table: AIRLINE AIRLINE AIRLINE AIR
- November 2020, Paper 2, Q5(c) (4 marks): Complete the query-by-example grid to find every airline with a head office in Asia or Africa, and number of countries greater than 4. Only show the airline nam
- November 2020 (variant 2), Paper 2, Q7(a) (1 mark): State the number of records in the table AUDIOPARTS [1]
- November 2020 (variant 2), Paper 2, Q7(b) (2 marks): Identify the field that is most suitable to be a primary key and give a reason for your choice. Fieldname Reason [2]
- November 2020 (variant 2), Paper 2, Q7(c) (4 marks): Complete the query-by-example grid to show the items where the quantity in stock is fewer than 10. Show all the fields from the database table in descending ord
- November 2020 (variant 3), Paper 2, Q5(a) (2 marks): State how many fields and how many records are shown in this table. Number of fields Number of records [2]
- November 2020 (variant 3), Paper 2, Q5(b) (2 marks): Show the output that would be given by this query-by-example. Field: Creature Class Ready for release Table: MARINE MARINE MARINE Sort: Show: 3 3 Criteria: ="Bi
- November 2020 (variant 3), Paper 2, Q5(c) (4 marks): Complete the query-by-example grid to display the creatures, in ascending order of quantity, that have no offspring and are ready for release. Display only the
- June 2020, Paper 2, Q6(a) (1 mark): State the purpose of the primary key in the TOOLS table. [1]
- June 2020, Paper 2, Q6(b) (3 marks): List the output from the data shown in the table TOOLS that would be given by this query-by- example. Field: Code Description Price ($) Quantity_Stock Quantity_
- June 2020, Paper 2, Q6(c) (3 marks): Complete the query-by-example grid to output the tools where the quantity in stock is below 25. Only show the Code, Description and Quantity_Stock fields in asc
- June 2020 (variant 2), Paper 2, Q6(a) (2 marks): Identify a suitable field to use as the primary key. State a reason for your choice. Field Reason [2]
- June 2020 (variant 2), Paper 2, Q6(b) (4 marks): Complete the query-by-example grid to display only the stock level and size of all cartons containing only apple juice. Field: Table: Sort: Show: Criteria: or:
- March 2020, Paper 2, Q5(a) (5 marks): Select the most appropriate data type for each field from the four types shown. State the reason why you chose the data type. SIZE data type Reason SHAPE data t
- March 2020, Paper 2, Q5(b)(i) (3 marks): Complete the query-by-example grid below to only display the price of small walnut boxes. Field: Table: Sort: Show: Criteria: or: [3]
- March 2020, Paper 2, Q5(b)(ii) (2 marks): The query-by-example grid from part (b)(i) needs to be changed to show both walnut and beech boxes and display the wood used. Only one column needs to be change
- November 2019, Paper 2, Q5(a) (3 marks): Complete the table to show suitable field names and an example of appropriate data for each field in the database table CAR_RANGE. Field name Example of data [3
- November 2019, Paper 2, Q5(b) (2 marks): State which of your fields would be most appropriate for a primary key and give a reason for your choice. [2]
- November 2019, Paper 2, Q5(c) (3 marks): Complete the query-by-example grid to provide a list of car models using petrol and the number of doors these cars have, in alphabetical order of car model. Dis
- November 2019 (variant 2), Paper 2, Q7(a) (1 mark): Explain why the field Item number could not be used as a primary key. [1]
- November 2019 (variant 2), Paper 2, Q7(b) (5 marks): A query-by-example has been written to display only the order number and item numbers of any items in progress or not started. Field: Item number Order number A
- November 2019 (variant 3), Paper 2, Q7(a) (2 marks): State the number of fields and records required for this database. Number of Fields Number of Records [2]
- November 2019 (variant 3), Paper 2, Q7(b) (2 marks): The data in MARKBOOK is stored under category headings: LastName, FirstName, Y10TestScore and Y11TestScore. State, with a reason, whether any of these headings
- November 2019 (variant 3), Paper 2, Q7(c) (4 marks): Complete the query-by-example grid to only display the first name, last name and year 10 test score of each student who achieved 50 or more in their year 10 tes
- June 2019, Paper 2, Q5(a) (1 mark): Give a reason for choosing BevNo as the primary key for this table. [1]
- June 2019, Paper 2, Q5(b) (1 mark): State the number of records shown in the table BEVERAGES. [1]
- June 2019, Paper 2, Q5(c) (3 marks): List the output that would be given by this query-by-example. Field: BevNo BevName Can Small Bottle Large Bottle Table: BEVERAGES BEVERAGES BEVERAGES BEVERAGES
- June 2019, Paper 2, Q5(d) (4 marks): Complete the query-by-example grid to output a list showing just the names and primary keys of all the beverages with a calorie count greater than 45. The list
- June 2019 (variant 2), Paper 2, Q6(a) (1 mark): State the field that could have a Boolean data type. Field [1]
- June 2019 (variant 2), Paper 2, Q6(b) (7 marks): A query-by-example has been written to display just the flight numbers of all planes leaving after 10:00 that only carry passengers. Field: Flight number Passen
- June 2019 (variant 3), Paper 2, Q6(a) (1 mark): Explain why the field Train Number could not be used as a primary key. [1]
- June 2019 (variant 3), Paper 2, Q6(b) (7 marks): A query-by-example has been written to display only the train numbers and platforms of all trains leaving after 08:30 that are late. Field: Train Number Platfor
- March 2019, Paper 2, Q6 (4 marks): A database table, BIKETYRES, is used to keep a record of tyres for sale in a cycle shop. Tyres are categorised by width and diameter in millimetres, whether the
- November 2018, Paper 2, Q6(a) (2 marks): Complete the table to show the most appropriate data type for each field based on the data shown in the table at the start of question 6. Field Data type PCID S
- November 2018, Paper 2, Q6(b) (4 marks): Using the query-by-example grid, write a query to identify all the desktop computers with a hard drive larger than 1000 GB. All fields in the table should be sh
- November 2018 (variant 2), Paper 2, Q6(a) (4 marks): Complete the table to show the most appropriate data type for each of the fields. Field Data type Reference Number Size Type Price in $ [4]
- November 2018 (variant 2), Paper 2, Q6(b) (3 marks): The results from the query-by-example grid should show the reference number, price, type and size of all portraits under $50. Identify the three errors in the q
- November 2018 (variant 3), Paper 2, Q6(a) (2 marks): State whether any of the fields shown would be suitable as a primary key. Explain your answer [2]
- November 2018 (variant 3), Paper 2, Q6(b) (3 marks): Complete the table to show the most appropriate data type for each of the fields based on the data shown in the table at the start of question 6. Field Data typ
- November 2018 (variant 3), Paper 2, Q6(c) (4 marks): Show the output that would be given by this query-by-example. Field: Tree Type Size1 Size1 In Table: TREETAB TREETAB TREETAB Sort: Descending Show: Criter
- November 2018 (variant 3), Paper 2, Q6(d) (4 marks): Using the following query-by-example grid, write a query to identify all types of the fruit trees that are out of stock for all three sizes. Make sure the type
- June 2018, Paper 2, Q6(a) (2 marks): State the number of fields and records in the table. Fields Records [2]
- June 2018, Paper 2, Q6(b) (2 marks): Give two validation checks that could be performed on the Show Number field. Validation check 1 Validation check 2 [2]
- June 2018, Paper 2, Q6(c) (4 marks): Using the query-by-example grid, write a query to identify jazz performances that are not sold out. Only display the date and the title. Field: Table: Sort: Sho
- June 2018 (variant 2), Paper 2, Q6(a) (1 mark): State the number of fields in the table. [1]
- June 2018 (variant 2), Paper 2, Q6(b) (2 marks): The tree numbering system uses TN followed by three digits. The numbering system will not work if there are over 1000 trees. Describe, with the aid of an exampl
- June 2018 (variant 2), Paper 2, Q6(c) (4 marks): Using the query-by-example grid, write a query to identify at risk trees over 100 years old. Display only the type and the position on the map. Field: Table: So
- June 2018 (variant 3), Paper 2, Q6(a) (1 mark): State the number of records in this part of the table. [1]
- June 2018 (variant 3), Paper 2, Q6(b)(i) (1 mark): Give the name of the field that should be used for the primary key. [1]
- June 2018 (variant 3), Paper 2, Q6(b)(ii) (1 mark): State the reason for choosing this field for the primary key. [1]
- June 2018 (variant 3), Paper 2, Q6(c) (2 marks): Complete the table to show the most appropriate data type for each field based on the data shown in the table at the start of question 6. Field Data type CatNo
- June 2018 (variant 3), Paper 2, Q6(d) (2 marks): List the output that would be given by this query-by-example. Field: CatNo Title Genre 1 Blu-ray DVD Stream Table: 2018MOV 2018MOV 2018MOV 2018MOV 2018MOV 2018M
- June 2018 (variant 3), Paper 2, Q6(e) (4 marks): Using the query-by-example grid, write a query to identify all the movies that are categorised as Sci-Fi and available to stream. Only display the catalogue num
- March 2018, Paper 2, Q6(a) (8 marks): Identify the four fields required for the database. Give each field a suitable name and data type. Explain why you chose the data type for each field. Field 1 N
- March 2018, Paper 2, Q6(b) (1 mark): Explain why none of these fields could be used as a primary key. [1]
- March 2018, Paper 2, Q6(c) (3 marks): Using the query-by-example grid below, write a query to identify the silver bracelets. Only display the number in stock and the price. Field: Table: Sort: Show:
- November 2017, Paper 2, Q6(a) (2 marks): Suggest another appropriate field that could be added to this database by stating its name and data type. State its purpose and give an example of the data it c
- November 2017, Paper 2, Q6(b) (4 marks): Use the query-by-example grid below to provide a list of all four legged mammals that are herbivores, sorted alphabetically by species, with only the species di
- November 2017 (variant 2), Paper 2, Q6(a) (6 marks): Identify the three fields required for the database. Give each field a suitable name and data type. Provide a sample of data that you could expect to see in the
- November 2017 (variant 2), Paper 2, Q6(b) (1 mark): State the field that you should choose as the primary key. [1]
- November 2017 (variant 2), Paper 2, Q6(c) (3 marks): Using the query-by-example grid below, write a query to identify all passenger engines that have not been serviced in the past 12 months. Only display the engin
- November 2017 (variant 3), Paper 2, Q6(a) (2 marks): Suggest another appropriate field that could be added to this database by stating its name and data type. State its purpose and give an example of the data it c
- November 2017 (variant 3), Paper 2, Q6(b) (4 marks): Use the query-by-example grid below to provide a list of all four legged mammals that are herbivores, sorted alphabetically by species, with only the species di
- June 2017, Paper 2, Q7(a) (1 mark): State the type of the field TVID and give a reason for your choice. [1]
- June 2017, Paper 2, Q7(b) (3 marks): Complete the table with the most appropriate data type for each field. Field name Data type ScreenSize 3D CurvedFlat Internet HDD Price [3]
- June 2017, Paper 2, Q7(c) (5 marks): Use the query-by-example grid below to provide a list of all of the curved screen TVs that have a built-in hard disk drive. Make sure the list only displays the
- June 2017 (variant 2), Paper 2, Q5(a) (8 marks): Identify the four fields required for the database. Give each field a suitable name and data type. Provide a sample of data that you could expect to see in the
- June 2017 (variant 2), Paper 2, Q5(b) (1 mark): State the field that you would choose as the primary key. [1]
- June 2017 (variant 2), Paper 2, Q5(c) (3 marks): Using the query-by-example grid below, write a query to identify the ear tags of all male sheep weighing over 10 kilograms. Only display the ear tags. Field: Ta
- June 2017 (variant 3), Paper 2, Q7(a) (1 mark): State the type of the field TVID and give a reason for your choice. [1]
- June 2017 (variant 3), Paper 2, Q7(b) (3 marks): Complete the table with the most appropriate data type for each field. Field name Data type ScreenSize 3D CurvedFlat Internet HDD Price [3]
- June 2017 (variant 3), Paper 2, Q7(c) (5 marks): Use the query-by-example grid below to provide a list of all of the curved screen TVs that have a built-in hard disk drive. Make sure the list only displays the
- March 2017, Paper 2, Q6(a) (2 marks): The query-by-example grid below selects certain records. Field: User Portable Purchase Price ($) Table: DEVICE DEVICE DEVICE Sort: Ascending Show: 3 Criteria: Y
- March 2017, Paper 2, Q6(b) (4 marks): Complete the query-by-example grid below to select all Desktop devices that were either purchased before 31/12/2016 or cost under $1000. Only show the Device ID
Questions, mark schemes and examiner’s reports are © Cambridge University Press & Assessment, from their published past papers. Plumi isn’t affiliated with any exam board. Want whole papers? CAIE IGCSE Computer Science past papers.
The Plumi iPad app also offers exam-style questions with AI feedback on your handwritten working.


![Original question 8(a): State the reason why ParentName is not appropriate as the primary key. [1]](https://pub-e8a9dbab8e2a4d089f52b2a45e0d0b50.r2.dev/bank/047821-nov25-08-a-qp.webp)
![Original question 8(b): Give the name of the field that should be the primary key. [1]](https://pub-e8a9dbab8e2a4d089f52b2a45e0d0b50.r2.dev/bank/047821-nov25-08-b-qp.webp)



![Original question 7(a): State the purpose of a primary key in a database table. [1]](https://pub-e8a9dbab8e2a4d089f52b2a45e0d0b50.r2.dev/bank/047822-nov25v2-07-a-qp.webp)




![Original question 8(a)(i): Give the name of the field that is most appropriate to be the primary key. [1]](https://pub-e8a9dbab8e2a4d089f52b2a45e0d0b50.r2.dev/bank/047823-nov25v3-08-ai-qp.webp)
![Original question 8(a)(ii): State the reason for choosing this field for the primary key. [1]](https://pub-e8a9dbab8e2a4d089f52b2a45e0d0b50.r2.dev/bank/047823-nov25v3-08-aii-qp.webp)


![Original question 8(a)(i): Identify one appropriate data type for the field Return [1]](https://pub-e8a9dbab8e2a4d089f52b2a45e0d0b50.r2.dev/bank/047821-jun25-08-ai-qp.webp)
![Original question 8(a)(ii): State the reason for the data type chosen. [1]](https://pub-e8a9dbab8e2a4d089f52b2a45e0d0b50.r2.dev/bank/047821-jun25-08-aii-qp.webp)
![Original question 8(b): Write the output from the structured query language (SQL) statement: SELECT RouteID, Destination, Time FROM BUS WHERE Driver = "A Patel"; [2]](https://pub-e8a9dbab8e2a4d089f52b2a45e0d0b50.r2.dev/bank/047821-jun25-08-b-qp.webp)
![Original question 8(c): Complete the SQL statement to display only the destination of the buses that have a return. SELECT [3]](https://pub-e8a9dbab8e2a4d089f52b2a45e0d0b50.r2.dev/bank/047821-jun25-08-c-qp.webp)




