Computer Science 0478 · 9

Databases

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

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

Databases · 1 mark

(ii) State the reason for choosing this field for the primary key. ................................................................................................................…

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

Databases · 2 marks · official answer ready

(c) Complete the table to identify the most appropriate data type for each field based on the data shown in the table BookList Field Data type CatNo Title Fiction Price [2]

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

Databases · 2 marks · official answer ready

(d) Write the output from this structured query language (SQL) statement. SELECT CatNo, Title, Author FROM BookList WHERE StockLevel = 0; .........................................…

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

Databases · 2 marks · official answer ready

(e) Complete this SQL statement to display all the titles by the author B Penn. SELECT ............................................................................................…

2022 October-November · Paper 21 · Q5(a)

Databases · 2 marks · official answer ready

(a) State which field you would choose for the primary key. Give a reason for your choice. Field ..................................................................................…

2022 October-November · Paper 21 · Q5(b)

Databases · 3 marks · official answer ready

(b) Complete the query-by-example grid to display only the item code and the manufacturer where the number in stock is below 10. Field: Table: Sort: Show: o o o o Criteria: or: [3…

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

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

Databases · 1 mark

(ii) State one reason why the Candidates field could not be of the Boolean data type. .............................................................................................…

2022 October-November · Paper 22 · Q7(b)

Databases · 3 marks · official answer ready

(b) Show the output given by the query-by-example grid. Field: SubjectName Practicals Candidates Table: ASSESS ASSESS ASSESS Sort: Ascending Show: 3 3 Criteria:

2022 October-November · Paper 22 · Q7(c)

Databases · 3 marks · official answer ready

(c) Complete the query-by-example grid to output the subjects with fewer than 150 candidates. Display only the SubjectCode, SubjectName and Candidates fields in order of the numbe…

2022 October-November · Paper 23 · Q5(a)

Databases · 2 marks · official answer ready

(a) Identify which field you would choose for the primary key. State a reason for your choice. Field ..............................................................................…

2022 October-November · Paper 23 · Q5(b)

Databases · 3 marks · official answer ready

(b) Complete the query-by-example grid to display only the description and the country of origin for those items not in store. Field: Table: Sort: Show: Criteria: or: [3] 15 16 re…

2022 May-June · Paper 12 · Q2(b)

Databases · 2 marks · official answer ready

(b) HTML colour codes and Media Access Control (MAC) addresses are two examples of where hexadecimal is used in Computer Science. Give two other examples of where hexadecimal can …

2022 May-June · Paper 21 · Q6(a)

Databases · 1 mark

(a) State the number of fields that are in the table GAMES. .......................................................................................................................…

2022 May-June · Paper 21 · Q6(b)

Databases · 1 mark

(b) State one important fact that must be true for a field to be a primary key. ...................................................................................................…

2022 May-June · Paper 21 · Q6(c)

Databases · 3 marks · official answer ready

(c) Complete the query-by-example grid to output all the games that have no stock and that are on order with the supplier. Display only the GameID, GameName and GamePrice fields i…

2022 May-June · Paper 22 · Q5(a)

Databases · 4 marks · official answer ready

(a) Complete this query-by-example grid to display only the item number and the description of single use items, where the stock level is below the reorder level. Field: Table: So…

2022 May-June · Paper 22 · Q5(b)

Databases · 1 mark · official answer ready

(b) Give a reason why the field SingleUse is not required in the table NURSE. .....................................................................................................…

2022 May-June · Paper 23 · Q6(a)

Databases · 1 mark

(a) State the name of the field that could contain Boolean data. ..................................................................................................................…