Databases
102 questions. Open a question to solve it and check the official answer.
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,…
Databases · 2 marks · official answer ready
(a) State the number of records and fields in this part of the database table. Records ............................................................................................…
Databases · 1 mark
(i) Give the name of a field that could be used for the primary key. ..............................................................................................................…
Databases · 1 mark
(ii) Explain why the sanctuary might decide not to use the field in (b)(i) as the primary key. ....................................................................................…
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…
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; ..................…
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 ................................…
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…
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…
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…
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 the fields in Songs Field Data type SongNumber Title Recorded Minutes [2]
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"; ..........…
Databases · 2 marks · official answer ready
(a) State the number of fields and the number of records in this database table. Fields ...........................................................................................…
Databases · 1 mark · official answer ready
(b) Describe the purpose of a primary key. ........................................................................................................................................…
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. …
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; ..................…
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 ...............................................................................…
Databases · 1 mark
(a) State the number of records in this part of the database table. ...............................................................................................................…
Databases · 1 mark
(i) Give the name of the field that would be used for the primary key. ............................................................................................................…
