Computer Science 2210 · 9

Databases

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

Reset
2024 May-June · Paper 22 · Q10(c)

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…

2024 May-June · Paper 22 · Q10(d)

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 ...............................................…

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

Databases · 1 mark

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

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

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 ...............................................................…

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

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…

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"; ..........…

2022 October-November · Paper 22 · Q3

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. ................................…

2022 October-November · Paper 22 · Q7(a)(i)

Databases · 1 mark · official answer ready

(i) State the most appropriate data type for the fields SubjectCode and Exams. SubjectCode ........................................................................................…