Computer Science 0478 · 9

Databases

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

2023 October-November · Paper 22 · Q10(d)

Databases · 3 marks · official answer ready

(d) Complete the structured query language (SQL) to return the code and breed of all the horses whose breed originated in Scotland. ......................................... Code,…

2023 October-November · Paper 23 · Q9(a)

Databases · 2 marks · official answer ready

(a) State the number of records and fields in this part of the database table. Records ............................................................................................…

2023 October-November · Paper 23 · Q9(b)(i)

Databases · 1 mark

(i) Give the name of a field that could be used for the primary key. ..............................................................................................................…

2023 October-November · Paper 23 · Q9(b)(ii)

Databases · 1 mark

(ii) Explain why the sanctuary might decide not to use the field in (b)(i) as the primary key. ....................................................................................…

2023 October-November · Paper 23 · Q9(b)(iii)

Databases · 1 mark

(iii) 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 better primary ke…

2023 October-November · Paper 23 · Q9(c)

Databases · 2 marks · official answer ready

(c) Write the output that would be given by this structured query language (SQL) statement: SELECT Species, Description FROM PheasantList WHERE NumberBirds > 6; ..................…

2023 October-November · Paper 23 · Q9(d)

Databases · 4 marks · official answer ready

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

2023 May-June · Paper 21 · Q10(a)

Databases · 2 marks · official answer ready

10 A database table called TVRange shows the main features and prices of a range of televisions. TVCode ScreenSize Satellite SmartTV SoundBar Price$ TV90SaSmSd 90 YES YES YES 9750…

2023 May-June · Paper 21 · Q10(b)

Databases · 2 marks · official answer ready

10 A database table called TVRange shows the main features and prices of a range of televisions. TVCode ScreenSize Satellite SmartTV SoundBar Price$ TV90SaSmSd 90 YES YES YES 9750…

2023 May-June · Paper 21 · Q10(c)

Databases · 4 marks · official answer ready

10 A database table called TVRange shows the main features and prices of a range of televisions. TVCode ScreenSize Satellite SmartTV SoundBar Price$ TV90SaSmSd 90 YES YES YES 9750…

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

Databases · 1 mark

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

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

Databases · 2 marks · official answer ready

(b) Complete the table to identify the most appropriate data type for the fields in Songs Field Data type SongNumber Title Recorded Minutes [2]

2023 May-June · Paper 22 · Q10(c)

Databases · 3 marks · official answer ready

(c) Explain the purpose of the structured query language (SQL) statements. SUM (Minutes) FROM Songs WHERE Genre = "rock"; COUNT (Title) FROM Songs WHERE Genre = "rock"; ..........…

2023 May-June · Paper 23 · Q10(a)

Databases · 2 marks · official answer ready

(a) State the number of fields and the number of records in this database table. Fields ...........................................................................................…

2023 May-June · Paper 23 · Q10(b)

Databases · 1 mark · official answer ready

(b) Describe the purpose of a primary key. ........................................................................................................................................…

2023 May-June · Paper 23 · Q10(c)

Databases · 2 marks · official answer ready

(c) The database uses the data types: • alphanumeric • character • Boolean • integer • real • date/time. Complete the table to show the most appropriate data type for each field. …

2023 May-June · Paper 23 · Q10(d)

Databases · 3 marks · official answer ready

(d) Give the output that would be produced by the structured query language (SQL) statement: SELECT Name, NumberGuest, Rate$ FROM Site1 WHERE NumberGuest >= 10; ..................…

2023 February-March · Paper 12 · Q5(d)(ii)

Databases · 2 marks · official answer ready

(ii) Identify two ways that cookies can be used to enhance the user’s experience of this website. 1 ...............................................................................…

2023 February-March · Paper 22 · Q9(a)

Databases · 1 mark

(a) State the number of records in this part of the database table. ...............................................................................................................…

2023 February-March · Paper 22 · Q9(b)(i)

Databases · 1 mark

(i) Give the name of the field that would be used for the primary key. ............................................................................................................…