Databases
102 questions. Open a question to solve it and check the official answer.
Databases · 4 marks · official answer ready
1 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 all SQL keywords …
Databases · 1 mark · official answer ready
(a) State the reason why ParentName is not appropriate as the primary key. ........................................................................................................…
Databases · 1 mark
(b) Give the name of the field that should be the primary key. ....................................................................................................................…
Databases · 2 marks · official answer ready
(c) The database only uses these data types: • text • character • Boolean • integer • real • date/time. Complete the table to show the most appropriate data type for each field. E…
Databases · 2 marks · official answer ready
(d) 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 .........................…
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 · 4 marks · official answer ready
5 (a) 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 giving appropria…
Databases · 4 marks · official answer ready
(b) 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 reordered. SELE…
