Unit 2 Guide Part A
Unit 2 Guide Part A
BTEC ICT
Unit 2
Creating Systems to manage information
(CSMI)
Activity Length
https://sites.google.com/rainhamgirls-tkat.org/btec-ict-level3/home
https://studio.youtube.com/channel/UCNU0A-nvGxOqK9B4Gldy4hg/content/playlists
Page 3
Page 4
Key things to remember before we begin
tbl_Name_of_table
● A screen print means just that, don’t submit your database as activity 1, it
won’t score any marks.
● Screen shots should include field name and table name, and in design view or
datasheet view as appropriate.
● Activity 1 is the key to the rest of the paper, doing activity 1 badly will affect
marks throughout the paper, as will uploading the incorrect screenprint.
● Read all the paper first, annotate where the requirements in one task will
affect how you create or enter the data in activity 2.
● Look for the clues in the wording of the questions or in the data for validation
rules you can use, this is an opportunity to show off your skills even if you
think they may not be entirely required.
Page 5
Activity 1 - Database Relationships
Remember:
Page 6
Normalise the dataset
Aim to make the dataset into 4 tables, there must be a relationship between
one table and another; so the primary key of one table is a foreign key in
another table.
Watch the first two and a half minutes of this video as an explanation of how
someone turns this dataset into four different tables
https://www.youtube.com/watch?v=38yUh5k2jK8&t=1076s
Sketch on the exam paper what your design is like, using one of the blank
pages or space. Remember to bring a pen or pencil. You do not submit this
sketch.
Page 7
For example you may use this table where a supplier is responsible for more than of
rose type. The rose type can be linked to more than one name of rose. The rose type
height can be for one rose ID.
Page 8
This is an example of the dataset above can be placed into 4 tables.You should always
aim to include 4 tables, you are marked down if it is less or more. The primary key is
identified.
Creating tables
You should create tables in this order:
Page 9
1. Tables with no foreign key
2. Tables with one foreign key
● Create the table that uses the first primary key as its foreign key
● And so on, so the data can flow from one table to another.
The crows foot identifies the order, from the one to the many, the crows foot is on
the many side, so one caravan can have many sales.
Watch this video which explain how the diagram above has been reached:
https://www.youtube.com/watch?v=tprOscL_Ox8&t=700s
Page 10
Create the relationships
Print screen the table of relationships and make a pdf of the document
Page 11
Activity 2 - Table structures and validation
Enter the data and use suitable input masks and validation to meet the requirements
stated in the paper. If you didn’t create input masks and validation rules already you
must do this now.
Data types
You must carefully select the data type for each field, with some data types there are
additional things to consider.
Number When you need to input a number, Can be used well with the
particularly useful for any ID fields. range validation.
Short Text Use for all text entries Remember to always change
the field length so it is
something other than 255.
Date / Time When using day, month, year and / or If you are using a date that
time. does not include all of
dd/mm/yy then use short text
instead.
OLE Object Is used for pictures and graphs. You won’t be required to use
this.
Attachment Is used for pictures and graphs. You won’t be required to use
this.
Lookup wizard Can be useful when creating a query. Opens up a wizard to help you
find information from another
table.
Page 12
The scenario will have a series of instructions; this will give you hints as to what validation
you should include where.
For example
A record for a new supplier will not save if the supplier Format check
telephone number is not in the correct format.
A record for a new supplier will not save if the supplier Presence check
name is not present
A record for a new rose type will not save if the type
height is below the accepted range
Range Check
A record for a new rose type will not save if the type
height is above the accepted range
For the other check, length check, you will need to decide upon where to include these
yourself. Value lookup is not required in this case as you have a range check. It won’t always
be this way.
It is worth writing on the question paper which check is which, and which others you
will need to include.
Page 13
Input Masks
Use an Input Mask to control data entry in an Access database. For example, you
can force users to enter a phone number with an area code or an employee
identification code with 2 letters followed by 3 numbers.
(0000)-000000 will force the user to enter a phone number with an area code.
>L<??????????????? will make the first letter capitalised and the following letters
lower case.
Two likely input masks are for telephone numbers, and postcodes. Most UK phone
numbers are a five digit area code and a six digit number, but always check this on
the dataset provided and change your input mask accordingly.
Email addresses are less good as an input mask, they can be used if there is no
better alternative but a validation rule is better. If the email address has to be a set
length and format, then an input mask can be used.
Page 14
Other examples of input masks can be to ensure answers are limited to a number of
characters.
You should now watch the remainder of this video to see how a database is
constructed with input masks and validation rules.
https://www.youtube.com/watch?v=38yUh5k2jK8&t=1076s
Page 15
Validation Rules
These force the user to either input some data or enter data in a specific format. You
should use some polite text to inform the user if something is not inputted in the
correct format.
You must include validation rules in your database and use show them in your
screenshots, this can be used as a format check and as a presence check.
Page 16
Validation Required Validation Rule Validation Text
Enter an email address Like "*?@*?.*?" Please enter the email address with
in correct format an '@' sign and the full domain name
Only accept letters Is Null or Not Like “*[!a-z]*” Please make sure you are only using
letters (A to Z)
Only accept digits Is Null OR Not Like “*[!0-9]*” Please make sure you are only
entering numbers.
Letters and spaces only Is Null OR Not Like “[!a-z OR “” “”]*” Please only enter letters or a space.
Digits and letters only Is Null OR Not Like “*[!((a-z) or (0- Please enter letters or numbers only.
9))]*”
Exactly 4 numbers Is Null OR between 1000 and 9999 Please enter only 4 numbers.
Not a future date Is Null or <= Date() Please enter a date that is not in the
future
You must fill in a field Not Null You are required to complete this
section.
Page 17
In your exam you must include screenshots of your tables, showing the table name
and fields.
If you do not include these screenshots you will lose marks.
Validation checks
You are required to include screenshots of these validation checks, your screenshots
must be in design view, or you will not score marks.
● Presence check - ensures the value is entered and cannot be left blank.
● Length check - places a limit on the number of characters a short text
answer can be.
● Value Lookup - provides a drop down menu (combo box) to make data entry
easier. Works well with numbers.
● Range check - ensures the value is within the required range.
● Table lookup - takes data from another table.
● Format check - Checks the correct format and tells the user the record will
not save unless in the correct format.
Usually it is either a value lookup or a range check, but don’t rely on just being able
to do one of those things. If you miss out a test you are likely to be at the bottom
of the mark band.
Your screenshots should show both the table name and field name when
required, and should be in design view.
Page 18
● Presence check
A validation rule of “Is not null” is entered and a validation text advises the user that
a name must be entered.
● Length check
On a short text format field, the field size is changed to 25 characters from the
default of 255. This shows you are able to set an appropriate length. If you don’t
change it you lose marks.
● Value Lookup
A combo box is added to create a drop down menu, the combo box contains the
options (in this case these values are taken from another table).
Page 19
● Range check
On a number field you can set a range that any data entered must fall between, in
this case it was the height of a rose in metres. This is entered as a validation rule,
and validation text is added.
● Table lookup
Information is taken from one table and added to this one. As more than one option
is available it is shown as a combo box (a drop down menu), so could also be a
value lookup. In this case the supplier id in the rose table is taken directly from the
supplier table.
● Format check
Page 20
Other useful video tutorials
https://www.youtube.com/watch?v=gWg7ncbkecg
Presence check
https://www.youtube.com/watch?
v=CB89hTwHZO8&list=PLd8uNPGNmEMcUoCSk-
r1uIpVd_DpGEQnN&index=8&pp=iAQB
https://www.youtube.com/watch?v=cy3yXNGiNqI
Length check
https://www.youtube.com/watch?
v=94eMLiSyX18&list=PLd8uNPGNmEMcUoCSk-
r1uIpVd_DpGEQnN&index=9&pp=iAQB
https://www.youtube.com/watch?v=s6YmkUCEfBs
Value Lookup
https://www.youtube.com/watch?v=xjJK-
RkwDoM&list=PLd8uNPGNmEMcUoCSk-
r1uIpVd_DpGEQnN&index=13&pp=iAQB
https://www.youtube.com/watch?v=9QqYe6v7s-o
Range check
https://www.youtube.com/watch?
v=FAqKoM2H8jU&list=PLd8uNPGNmEMcUoCSk-
r1uIpVd_DpGEQnN&index=14&pp=iAQB
https://www.youtube.com/watch?v=kF7OhUJwc7M
Table Lookup
https://www.youtube.com/watch?
v=hWdyJMEsghs&list=PLd8uNPGNmEMcUoCSk-
r1uIpVd_DpGEQnN&index=15&pp=iAQB
https://www.youtube.com/watch?v=yYbuQhWohdU
Format check
https://www.youtube.com/watch?
v=7ACJ0r3YywM&list=PLd8uNPGNmEMcUoCSk-
r1uIpVd_DpGEQnN&index=10&pp=iAQB
Page 21
Activity 3 - Queries and Reports
Preparation
You should make sure you can see the property sheet and have all the tables
opened.
Page 22
In this activity you will be given a simple query and a more complex query to
perform.
Watch the first part of this video in which you are walked through how to make a
query.
https://www.youtube.com/watch?v=lGb2Ggv8T2s
Planning a query
Make sure you cover all of these points when planning how to create your query:
● What tables?
● What fields?
● What type of query? (Either Criteria, Wild Card, or parameter)
● What criteria are required?
● What calculations are needed?
● What sorts are needed?
● What is my output? What do I want to see at the end?
What criteria are required? Shade of pink, at least 1.8 metres high.
What calculations are needed? Is a rose greater than 1.8 metres high
What is my output? What do I A list in alphabetical order or roses in any shade of pink and
want to see at the end? over 1.8 metres high.
It must only show the rose name, colour, and supplier name,
and not show the height.
Page 23
When adding criteria, you are using similar terms to the validation rules in activity 2.
For example
Page 24
A more detailed set is
When you need to show your information in a particular order, use the sort selection
for the value you wish to use. You can see type_height has been unselected.
If you need to include information in the query, but are asked not to display it in the
output when the query runs, untick the box marked ‘show’.
Remember at the end your screenshot should show the DESIGN view of the queries
specified that you have created, including fields and criteria, and the DATASHEET
view of the queries specified that you have created.
Page 25
For more complex queries, you will need to add in your own calculations.
What criteria are required? Expert surname and ID, number of roses responsible for,
number of years since last training, but only for experts
whose training was over 3 years ago.
What calculations are needed? How many years since an expert's last training. The total
number of roses that each expert is responsible for.
What sorts are needed? None - the question does not indicate any sorts are required.
What is my output? What do I The experts surname and ID and the number of years since
want to see at the end? their last training, along with the number of roses the expert is
responsible for. You do not need to show the date of their
last training or the names of the roses that they are
responsible for.
You should be able to check the various parts of your query against the original
datasheet provided
Page 26
You may need to create wildcards to show words or terms that are met across
different fields or tables:
In order to answer the more complex query you will need to create your own
headings and columns in the query,
Any calculations are placed instead of the appropriate brackets, so round brackets
around the whole calculation and square brackets around field names.
You may need to use an expression, common expressions can be found here
https://support.microsoft.com/en-gb/office/Expressions-684295d0-97c2-443c-8e0a-
8c6b635bec56#ID0EAABAAA=Date_time&ID0EBBD=Popular_functions
In this case we are calculating the difference in prices in one column and allocating a
rating.
Page 27
You may need to use the totals button, this is required
when you need the data as a total rather than showing
each item.
https://youtu.be/XL_ZoPPgljU?si=fmS7c4t328P6Nwz_
https://www.youtube.com/watch?v=oHDwKGVtZMc
● Total
● Average
● Multiplication
● Percentage
Page 28
Remember at the end your screenshot should show the DESIGN view of the queries
specified that you have created, including fields and criteria, and the DATASHEET
view of the queries specified that you have created.
Make sure you have removed any tables you don’t need in the query, and only show
the tables relevant to the query.
Design view
Datasheet view
Page 29
Reports
https://www.youtube.com/watch?v=1XUeGq80R5Q
We will focus on these aspects in this section. If you are unsure with the query
aspect, look back to that section.
At the end you will need to save your report query and report in set formats. You will
be penalised marks for failing to do this correctly.
https://youtu.be/lGb2Ggv8T2s?si=s38t7S_vAV4umn_e&t=947
Page 30
In this report you are required to display certain things, not all of these are shown in
your original data table, so you will need to pull this information together.
Work out which information can be taken from the tables you have already created,
in this case it is:
Once you have put your query together, run it. If it looks like the right information
then you may proceed.
Once you are satisfied that you have created a query which contains the information
needed you can then proceed with your report.
Page 31
It is suggested that you use the report wizard to help you here
You will also need to set up the layout of your report, particularly the need to show it
one page
Page 32
You will also need to name the report and set it so you can modify the report,
remember the title needs to follow the naming protocol of rpt_
When you run your report you can change the displayed name to something that
would make more sense. You will lose marks if you don’t do this.
To view your report select report view, to edit it select design view
It is likely that you will need to edit names, and add in extra sections, this can be
done by adding a footer
Page 33
Your final report should be shown in report view
To export it as a PDF you select this from the ribbon at the top, then following the
procedure save it to the correct folder as a pdf
Page 34
Activity 4 - Structure Testing
Remember:
● Read all of the tests, and be clear about what you need to show
● Complete all of the tests
● Complete the table with screenshots, make sure these show the table and the
error message.
● Do not just write ‘error message’ as an answer, explain what the error
message should show.
● Do not copy the wording of the test from the question paper to your sheet, you
need to demonstrate that you understand the test.
● You are not required to add a column showing the ‘type of test’ (N: Normal, R:
Erroneous, or X: Extreme)
● Complete all the boxes required, if you feel nothing needs to be added in a
box write ‘null’ or ‘blank’
Watch this video which walks you through a structure test (ignore the ‘type of
test section’
https://www.youtube.com/watch?v=yKiJdNLBmmY
When you read the tests in activity 4, annotate the question paper with the data you
will need, this could also include the table that you need to use.
The tests will cover a range of areas, often related to the requirements of the
database which were set out in earlier activities.
Page 35
When conducting the tests, you will need to try to add new data to the table if the
question is about adding new fields and records.
A record for a new supplier - needs supplier ID and supplier name and supplier
telephone number. But the focus is on the telephone number and needing to be in
the correct format.
This is a sign there needs to be a format check of the telephone number, this could
be through an input mask or a validation rule.
You should now complete the first three columns of the activity 4 sheet, you should
be as detailed as possible about what results you expect to see, this is more than
just writing ‘error message’.
Consider:
● What format would you expect the data to be in?
● Is the cursor going to change colour or style?
● Are you going to be unable to add anymore data until the error is
rectified?
● What is the error message going to say?
Page 36
Completing the testing form
This is an excellent detailed example of what the test sheet should look like:
This is a less good example, note how little information is included, particularly in the
Page 37
expected results box:
Types of test
These are the types of test you are likely to be carrying out:
Presence checks You would expect to see an error message, and be unable
to proceed, if no data was entered in a cell, when it is
compulsory to enter data in that cell.
Format checks You would expect to see an error message if the data
entered was in an incorrect format. The error message
should also indicate what the expected format is.
Range checks You would expect to see an error message, and be unable
to save, if the data you put in was outside of the permitted
range.
Value Lookups An error message should appear if the value is not entered.
The combo box should limit the options to ones specified in
the original table.
Table Lookups These are testing the structures of your database. Can data
from one table be correctly transferred from one table to
another. An error message should appear if the structure is
incorrect, and data has not been transferred.
Your completed test log should be saved as a PDF, do not just upload the RTF
file you wrote on.
Common Mistakes
Page 38
Avoid these mistakes at all costs, they seem minor, but will cost you marks as you
are not demonstrating correct procedures.
Summary
To consolidate your knowledge watch this video (it refers to ‘type of test’, but ignore
that column).
https://www.youtube.com/watch?v=q8VWiZpSDjo
Page 39
Activity 5 - Structure evaluation
In this section you will need to evaluate four aspects of your database structure.
● Validation rules
● Relationships
● Value Lookups and validation rules
Points to remember:
● You have normalised a data structure, therefore fields are not duplicated.
● You have linked data from one table to another when necessary.
● You have used primary keys and foreign keys, and primary keys cannot be
duplicated, therefore data duplication is reduced.
● You have named tables that you will need to refer to, remembering your
naming conventions of tbl_
● Therefore you have enforced referential integrity in your relationships, and this
will reduce problems with the data.
This is an example of an evaluation of the roses database which scores full marks:
Page 40
This is an example of a structure you can use to answer to point about data
duplication, and only need to change the bits in brackets to make it relevant to your
specific scenario:
The database structure has minimised data duplication well. It uses foreign keys to
ensure no data is in more than one table.
A good example of this is the primary key / foreign key relationship between
(tbl_INSERTNAME1) and (tbl_INSERTNAME2). (tbl_INSERTNAME) has
(INSERTHOWMANY) fields, one of which is (INSERTFIELDNAME). This is a
foreign key which is related to the Primary Key of the same name in
(tbl_INSERTNAME). This ensures that the (INSERTFIELDNAME) data is present
in only one table and, and doesn't need to be duplicated elsewhere.
It also makes it easier to add more (INSERTTYPEOFDATATHISFIELDISABOUT)
in future. Simply adding further records to (tbl_INSERTNAME) will allow for the
easy addition of more (INSERTTYPEOFDATATHISFIELDISABOUT).
All tables have unique primary keys, and all relationships have referential integrity
enforced, and relationships that are table lookups are ‘limited to list’; this means
that incorrect data can’t be added, the user can’t link to a primary key that isn’t
already in the database.
Page 41
Skills Summary for Part A
Use this table to self evaluate your own skills for each activity. Your practice and
revision should focus on those skills that need work, but practise all the skills.
Confident
Needs
Activity Skill needing to be shown work
OK and
mastering
Input masks
Page 42
Walkthroughs of previous papers
We have used a few previous papers in this guide, there are a number of videos
which walk you through a range of activities.
Exam series Topic for the Links to walk through video playlists
data in part A
Before 2020 the exam was in a slightly different format, so don’t take too much
from any videos which ask you to do things not in this booklet.
Page 43
Marking grids
This is the mark scheme used each year for your unit 2 exam. Each year the
examiner is looking for certain specific things within each activity, these are called
traits and are the various requirements and validations that are mentioned or implied
in the question paper.
Page 44
Page 45
Taking a screenshot and saving a PDF
Page 46
You will need to save this as a PDF.
Page 47
Reference library
● Bound column
● Column count
● Datasheet view
● Design view
The view that allows you to create and name columns and fields and to give them
values, input masks and validation rules.
● Input Masks
● Naming conventions
Page 48
● One to many
When one piece of data has a relationship with many pieces of data, there is one
manufacturer who makes a number of things, or one type of product that is made by
many manufacturers.
● Parenthesis
( ) is used around all calculations and where you are taking information from different
fields
[ ] is used around the field name
● Referential Integrity
Where data from one table is correctly transferred to another table, and additional
records cannot be added.
● Relationship
Watch the videos if you are unsure how to conduct these checks.
https://www.youtube.com/playlist?list=PLZAmrvIayeXvbnHJvoBKWQYetjj7VjVzk
Page 49
● Validation Rules
NOT Tests for converse values. Use NOT > 10 (the same as
before any comparison operator <=10).
except IS NOT NULL.
Page 50
LIKE "U*".
= Equal to.
● Validation Text
Always add some polite text to instruct the user what they should do if the validation
rule is not followed.
Page 51