Computer Science 2210 · 9

Databases

109 questions. Open a question to solve it and check the official answer.

Reset
2025 October-November · Paper 22 · Q7(a)

Databases · 1 mark

(a) State the purpose of a primary key in a database table. .......................................................................................................................…

2025 October-November · Paper 22 · Q7(b)

Databases · 2 marks · official answer ready

(b) 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. Data type Fiel…

2025 October-November · Paper 22 · Q7(c)

Databases · 3 marks · official answer ready

(c) Give the output that would be produced by the structured query language (SQL) statement: SELECT Species, Length, Wingspan FROM WATERFOWL WHERE Family = "Swan" ORDER BY Lifespa…

2025 October-November · Paper 22 · Q7(d)

Databases · 4 marks · official answer ready

(d) 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 species. SELECT .....…

2025 October-November · Paper 23 · Q8(a)(i)

Databases · 1 mark · official answer ready

(i) Give the name of the field that is most appropriate to be the primary key. ....................................................................................................…

2025 October-November · Paper 23 · Q8(a)(ii)

Databases · 1 mark

(ii) State the reason for choosing this field for the primary key. ................................................................................................................…

2025 October-November · Paper 23 · Q8(b)

Databases · 3 marks · official answer ready

(b) Complete the structured query language (SQL) statement to list equipment not returned. The list must contain only the descriptions and student names. SELECT ..................…

2025 May-June · Paper 11 · Q4(c)(ii)

Databases · 2 marks · official answer ready

(ii) The packets of data may need to be reordered when they arrive at the computer in the restaurant kitchen. Explain why the packets of data may need to be reordered. ...........…

2025 May-June · Paper 21 · Q8(a)(i)

Databases · 1 mark

(i) Identify one appropriate data type for the field Return .......................................................................................................................…

2025 May-June · Paper 21 · Q8(b)

Databases · 2 marks · official answer ready

(b) Write the output from the structured query language (SQL) statement: SELECT RouteID, Destination, Time FROM BUS WHERE Driver = "A Patel"; .....................................…

2025 May-June · Paper 21 · Q8(c)

Databases · 3 marks · official answer ready

(c) Complete the SQL statement to display only the destination of the buses that have a return. SELECT ............................................................................…

2025 May-June · Paper 22 · Q9(a)

Databases · 2 marks · official answer ready

(a) 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 [2]

2025 May-June · Paper 22 · Q9(b)

Databases · 4 marks · official answer ready

(b) 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. SELECT ......…

2024 May-June · Paper 11 · Q8(d)

Databases · 2 marks · official answer ready

(d) Give two advantages of the farmer using an automated robot to plant seeds. 1 ..................................................................................................…

2024 May-June · Paper 11 · Q8(e)

Databases · 2 marks · official answer ready

(e) Give two disadvantages of the farmer using an automated robot to plant seeds. 1 ...............................................................................................…

2024 May-June · Paper 11 · Q9(a)

Databases · 3 marks · official answer ready

(a) Explain how the data might have errors after transmission. ....................................................................................................................…

2024 May-June · Paper 21 · Q9(a)

Databases · 1 mark · official answer ready

(a) State whether any of the given fields would be suitable as a primary key and give a reason for your answer. ...................................................................…

2024 May-June · Paper 21 · Q9(b)

Databases · 5 marks · official answer ready

(b) Complete the structured query language (SQL) statement to return the number of cans the shop has in stock. SELECT ....................................................... (....…

2024 May-June · Paper 22 · Q10(a)

Databases · 1 mark

(a) Identify the field that will be the most appropriate primary key for this table. ..............................................................................................…

2024 May-June · Paper 22 · Q10(b)

Databases · 2 marks · official answer ready

(b) Complete the table to identify the most appropriate data type for these fields in Contract Field Data type ContractNumber Months EndDate Sport [2]