Databases
109 questions. Open a question to solve it and check the official answer.
Databases · 1 mark
(a) State the purpose of a primary key in a database table. .......................................................................................................................…
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…
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…
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 .....…
Databases · 1 mark · official answer ready
(i) Give the name of the field that is most appropriate to be the primary key. ....................................................................................................…
Databases · 1 mark
(ii) State the reason for choosing this field for the primary key. ................................................................................................................…
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 ..................…
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. ...........…
Databases · 1 mark
(i) Identify one appropriate data type for the field Return .......................................................................................................................…
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"; .....................................…
Databases · 3 marks · official answer ready
(c) Complete the SQL statement to display only the destination of the buses that have a return. SELECT ............................................................................…
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]
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 ......…
Databases · 2 marks · official answer ready
(d) Give two advantages of the farmer using an automated robot to plant seeds. 1 ..................................................................................................…
Databases · 2 marks · official answer ready
(e) Give two disadvantages of the farmer using an automated robot to plant seeds. 1 ...............................................................................................…
Databases · 3 marks · official answer ready
(a) Explain how the data might have errors after transmission. ....................................................................................................................…
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. ...................................................................…
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 ....................................................... (....…
Databases · 1 mark
(a) Identify the field that will be the most appropriate primary key for this table. ..............................................................................................…
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]
