Database Assessment - Answers
Database Assessment - Answers
Total Mark:
51
Student Name & Form:
Teaching Group:
Teacher:
Database Test
1. State either E (electronic database) or P (paper database) for the following:
Point E or P?
Can hold a vast amount of data – not limited E
Can take a while to manually search through all of the records P
Can easily update or amend a record e.g. customer's address after moving house E
The database can be kept secure by use of passwords E
Records can be lost or misfiled making it hard to find them P
Marks /5
2. A small clinic has a paper based system of keeping track of their patients. As it has grown it
is becoming quite un-manageable. Suggest a different way of maintaining their database.
Explain at least two benefits of changing to this new database.
Electronic Database
Can be kept in a secure way by using passwords so only authorised staff can see the data
Use of a computerised database will mean that it is stored electronically and no longer in a physical place.
More storage!
Can amend existing records without making the records messy and unreadable
Easy to delete and add new records
Can keep a backup of the whole database. This will ensure that if there is an emergency or a fire the data will
be secure with minimal data loss.
Marks /4
3. What is a primary key? Why are they needed?
A primary key is used to ensure data in the specific column is unique.
Each entity has a primary key to provide a unique reference to an entity, which means that an entity can be
referenced in another table without having to call up all the details about that entity.
Marks /2
4. You have been asked to create a database table for a sweet shop. The database needs to
include, price of the sweets, the name and ID of each sweet, the type of sweets, how many
have been sold and best before date.
You need to design the table and include the following:
At least one record should be filled.
The data types
Use this space to plan the design.
NOTE: Some of the names of the fields can vary but it should be similar.
Awarding marks
0-2 marks 3-4 5-6 Marks /6
Identified 2-3 fields correctly. An attempt at filling in Primary key can be identified. 4 fields have been All fields have been identified and given
the records. Some of the field names are not very identified. Records are correctly entered appropriate names. Record has been filled in
appropriate correctly.
b) Justification of use of datatypes
Marks /14
Marks /5
Boolean Operators
6. Which of the following are Boolean operators in queries?
a. TRUE, FALSE
b. YES, NO
c. AND, OR, NOT
7. Which of the following queries would exclude 'Red' from a list of colours?
a. Red
b. ONLY
c. NOT Red
8. Which query would you use to present results for 'purple trousers'?
a. Purple AND trousers
b. Purple NOT trousers Marks /3
c. Purple OR trousers
SQL Statements
Gym Membership
No Name Street Membership type Payment Date of Gender
up-to-date Admission
257 James 32 Cyprus St Monthly No 01/05/2013 Male
226 Stephanie 22 Bow Road Monthly Yes 02/10/2014 Female
259 Jenny 15 Stepney Way Pay-as-you-go Yes 20/10/2014 Female
243 Abdul 13 Oxford Road Pay-as-you-go Yes 23/11/2014 Male
241 Mary 13 Method Way Monthly Yes 12/01/2015 Female
Ignore question
c) Find all records are on a monthly membership
d) Find all records who are female and have monthly memberships
10. What is the primary key for the Gym membership table?
No
Marks /1
Marks /6
Mastery Comment & Closing the Gap Target/s
Look through your assessment and circle all the questions where you performed poorly. Look
at the mastery column to see how you need to improve.
Teacher Comment:
Closing the Gap