0% found this document useful (0 votes)
208 views8 pages

Database Assessment - Answers

The student scored 51 marks on their Year 8 assessment. They completed a database test with questions on electronic and paper databases, benefits of changing to an electronic database, primary keys, designing a database table for a sweet shop including fields and sample data, justifying data types, matching data types to examples, Boolean operators, and writing basic SQL statements. Areas for improvement included understanding database types, primary keys, and using SQL language.

Uploaded by

Mithila Hossain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
208 views8 pages

Database Assessment - Answers

The student scored 51 marks on their Year 8 assessment. They completed a database test with questions on electronic and paper databases, benefits of changing to an electronic database, primary keys, designing a database table for a sweet shop including fields and sample data, justifying data types, matching data types to examples, Boolean operators, and writing basic SQL statements. Areas for improvement included understanding database types, primary keys, and using SQL language.

Uploaded by

Mithila Hossain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Year 8 Assessment

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.

a) Now daw the table and at least one record.

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

Field Name Data type Justification of field


This will be created to store the unique
Sweet ID/ Item ID Autonumber/Text/Number ID of the sweet.

Sweet Name Text This will be created to store the name of


the sweet.

Cost/Price Currency This will be created to store the price of


each sweet.

Sweet Type Text This will be created to store the type of


sweet e.g chocolate, hard sweet,
multipack etc.

Quality Sold Number This will be created to store the number


of sweets sold for each sweet

Best Before Date This will be created to store the best


Date Time before date for the sweet.

12 marks – 2 marks for each row correctly completed.


2 marks – quality of response (e.g. fill sentences for the justification)

Marks /14

5. Match the data type to the example

Data type Example


Text 12:50
Number 
Yes/No 34
Date/Time E3 9NT
Image No

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

SQL Format: SELECT * FROM Gym_Membership ……


9. Write the following SQL statements to find: (1 mark per SQL statement)

a) Find all records whose payments are not up-to date

SELECT * FROM Gym_Membership WHERE Payment up-to-date =


‘No’
b) Find all records whose payments are not up-to date

Ignore question
c) Find all records are on a monthly membership

SELECT * FROM Gym_Membership WHERE Membership type =


‘Monthly

d) Find all records who are female and have monthly memberships

SELECT * FROM Gym_Membership WHERE Gender = ‘Female’ AND


Membership type = ‘Monthly
e) Can you create your own SQL statement

SELECT * FROM Gym_Membership (this will differ from student to


student)
Marks /5

10. What is the primary key for the Gym membership table?

No
Marks /1

11. Label the following:

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.

Question Action Point Area Mastery Comments


Explain the pros and cons of paper and electronic
Q1 databases

Understand the difference between paper and electronic


Database types databases
Explain the purpose of databases
Q2
Understand what data types are
Q5
Understand what the purpose of primary keys are
Q3
Q4a Suggest suitable database in a given scenario
4b Database Types and Explain the type of data that can be stored in each data type
Primary Key
Q10 Apply primary keys to given context
Q11 Outline the different parts to a database table
Understand what Boolean operators are
Q6, 7, 8
SQL Language
Use simple SQL language
Q9a- 9e

Teacher Comment:
Closing the Gap

You might also like