Databases HomeWork
Databases HomeWork
1. Look carefully at the screenshot below and answer the questions following.
What is a database?
________________________________________________________________________
(1 mark)
What is a primary key?
________________________________________________________________________
__________________________________________________________________________
(2 marks)
What is a query?
________________________________________________________________________
__________________________________________________________________________
(2 marks)
Page 1 of 7
Databases Worksheet
3. Use the following words to label the parts of the database picture shown below:
(5 marks)
Page 2 of 7
Databases Worksheet
____________________________ ____________________________
____________________________ ____________________________
(5 marks)
e. How many records does the table have? ___________
g. The records in the table are sorted in ascending order by: ________________________
(3 marks)
h. Apply the required criteria on the query design image shown below to list
‘local products’ only and to show all the 3 fields.
(4 marks)
Page 3 of 7
Databases Worksheet
6. Look carefully at the query shown below and answer the following questions:
_________________________
Page 4 of 7
Databases Worksheet
a. The two pictures below show different views of the same table. Write down the
appropriate view beneath each picture.
___________________________________ ____________________________________
(2 marks)
b. Which view is used to add a new field?
_______________________________________________________________________
(1 mark)
c. Which view is used to add a new record?
_______________________________________________________________________
(1 mark)
d. Fill in the table below with the appropriate Field Names to create a table which will
contain your friend’s details. You need to create at least another five different Field
Names with their Data Type. The first one is set as an example.
(5 marks)
Page 5 of 7
Databases Worksheet
You are to design a database to be used in a school library. The database will have a table
about books and a table about students.
a. Name 4 fields that can be used in the books table and suggest a data type for them:
Field Name Data Type
(4 marks)
b. Name 4 fields that can be used in the students table and suggest a data type for them:
Field Name Data Type
(4 marks)
c. For each of the two tables above suggest which field is most suitable to be used as the
primary key.
(3 marks)
Page 6 of 7
Databases Worksheet
(5 marks)
12. The following picture shows a screenshot of the relationships window.
a. Describe how you would set up a relationship between the ‘User Index’ primary key in
the customers table to the ‘User Index’ field in the Rental table.
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
(3 marks)
Page 7 of 7