Computer Science For First Examination In 2021 9618 · 8

Databases

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

2022 October-November · Paper 12 · Q5(c)

Database concepts · 1 mark · official answer ready

(c) State what is meant by a candidate key in a relational database. ..............................................................................................................…

2022 October-November · Paper 12 · Q5(d)(i)

Database concepts · 2 marks · official answer ready

(i) Describe, using an example, what is meant by a data dictionary. ...............................................................................................................…

2022 October-November · Paper 12 · Q5(d)(ii)

DBMS · 2 marks · official answer ready

(ii) Describe what is meant by a logical schema. ..................................................................................................................................…

2022 October-November · Paper 13 · Q2(a)

Database concepts · 3 marks · official answer ready

(a) Complete the following table by writing the correct answer for each item. Item Answer a suitable field for the primary key in COMPANY a candidate key in TELESCOPE the degree o…

2022 October-November · Paper 13 · Q2(b)

DBMS · 1 mark · official answer ready

(b) A Database Management System (DBMS) has several features. Identify the feature that describes the relationship between data and its structure. ................................…

2022 October-November · Paper 13 · Q2(c)

DDL and DML · 4 marks · official answer ready

(c) Complete the SQL script to return the total number of telescopes owned by the company whose ID begins with HW. SELECT ........................................... (............…

2022 October-November · Paper 13 · Q2(f)

DBMS · 2 marks · official answer ready

(f) Describe the purpose of a query processor in a DBMS. ..........................................................................................................................…

2021 October-November · Paper 11 · Q5(a)

Database concepts · 2 marks · official answer ready

(a) Tick () one box in each row to identify whether each field is a primary key or a foreign key. Table Field name Primary key Foreign key MANAGER ManagerID SHOP ManagerID CAR Reg…

2021 October-November · Paper 11 · Q5(c)(i)

DDL and DML · 3 marks · official answer ready

(i) Complete the following DML statements to return the number of cars for sale in each shop. SELECT COUNT(.........................................................) FROM ........…

2021 October-November · Paper 11 · Q5(c)(ii)

DDL and DML · 2 marks · official answer ready

(ii) Complete the DML statement to include the following car in the table CAR. Field Data RegistrationNumber 123AA Make Tiger Model Lioness NumberOfMiles 10500 ShopID 12BSTREET ..…

2021 October-November · Paper 13 · Q5(a)

Database concepts · 2 marks · official answer ready

(a) Tick () one box in each row to identify whether each field is a primary key or a foreign key. Table Field name Primary key Foreign key MANAGER ManagerID SHOP ManagerID CAR Reg…

2021 October-November · Paper 13 · Q5(c)(i)

DDL and DML · 3 marks · official answer ready

(i) Complete the following DML statements to return the number of cars for sale in each shop. SELECT COUNT(.........................................................) FROM ........…

2021 October-November · Paper 13 · Q5(c)(ii)

DDL and DML · 2 marks · official answer ready

(ii) Complete the DML statement to include the following car in the table CAR. Field Data RegistrationNumber 123AA Make Tiger Model Lioness NumberOfMiles 10500 ShopID 12BSTREET ..…

2021 May-June · Paper 11 · Q7(b)(ii)

Database concepts · 1 mark · official answer ready

(ii) Tick (3) one box to identify the relationship that cannot be directly implemented in a normalised relational database. Relationship Tick (3) one-to-one one-to-many many-to-ma…

2021 May-June · Paper 11 · Q7(b)(iii)

DDL and DML · 1 mark · official answer ready

(iii) Bobby wants to name his database SHOPORDERS. Write a Data Definition Language (DDL) statement to define a new database with the name SHOPORDERS. ............................…

2021 May-June · Paper 11 · Q7(c)

Database concepts · 3 marks · official answer ready

(c) A database has a data dictionary. Give three items that are stored in a data dictionary. 1 ....................................................................................…

2021 May-June · Paper 13 · Q7(b)(ii)

Database concepts · 1 mark · official answer ready

(ii) Tick (3) one box to identify the relationship that cannot be directly implemented in a normalised relational database. Relationship Tick (3) one-to-one one-to-many many-to-ma…

2021 May-June · Paper 13 · Q7(b)(iii)

DDL and DML · 1 mark · official answer ready

(iii) Bobby wants to name his database SHOPORDERS. Write a Data Definition Language (DDL) statement to define a new database with the name SHOPORDERS. ............................…

2021 May-June · Paper 13 · Q7(c)

Database concepts · 3 marks · official answer ready

(c) A database has a data dictionary. Give three items that are stored in a data dictionary. 1 ....................................................................................…