Databases
59 questions. Open a question to solve it and check the official answer.
Database concepts · 1 mark · official answer ready
(c) State what is meant by a candidate key in a relational database. ..............................................................................................................…
Database concepts · 2 marks · official answer ready
(i) Describe, using an example, what is meant by a data dictionary. ...............................................................................................................…
DBMS · 2 marks · official answer ready
(ii) Describe what is meant by a logical schema. ..................................................................................................................................…
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…
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. ................................…
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 ........................................... (............…
DBMS · 2 marks · official answer ready
(f) Describe the purpose of a query processor in a DBMS. ..........................................................................................................................…
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…
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 ........…
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 ..…
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…
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 ........…
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 ..…
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…
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. ............................…
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 ....................................................................................…
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…
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. ............................…
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 ....................................................................................…
