Databases
109 questions. Open a question to solve it and check the official answer.
Databases · 3 marks · official answer ready
(c) Explain the purpose of these structured query language (SQL) statements. Statement 1: SELECT SUM (Months) FROM Contract; Statement 2: SELECT COUNT (News) FROM Contract WHERE N…
Databases · 2 marks · official answer ready
(d) Complete this SQL statement to find the contract numbers of the subscribers that take both the news and sports services. SELECT ...............................................…
Databases · 1 mark
(a) State the number of records in this database table. ...........................................................................................................................…
Databases · 2 marks · official answer ready
(b) Give the name of the field that is most suitable to be the primary key. State the reason for this choice. Field ...............................................................…
Databases · 2 marks · official answer ready
(c) The database only allows the data types: • Boolean • character • date/time • integer • real • text. Complete the table to show the most appropriate data type for each field. E…
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 · 3 marks · official answer ready
3 Describe the use of verification on input of data when entering a list of items in stock into a database. Explain why verification is necessary. ................................…
Databases · 1 mark · official answer ready
(i) State the most appropriate data type for the fields SubjectCode and Exams. SubjectCode ........................................................................................…
