Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2 September 2015
Marking Scheme
This marking scheme has been prepared as a guide only to markers. This is not a set of
model answers, or the exclusive answers to the questions, and there will frequently be
alternative responses which will provide a valid answer. Markers are advised that, unless a
question specifies that an answer be provided in a particular form, then an answer that is
correct (factually or in practical terms) must be given the available marks.
If there is doubt as to the correctness of an answer, the relevant NCC Education materials
should be the first authority.
Where markers award half marks in any part of a question, they should ensure that
the total mark recorded for the question is rounded up to a whole mark.
Answer ALL questions
Marks
Question 1
Class lists
Timetabling
Staffing
Payroll
Exam scheduling
Library systems.
i) Administration Utilities 1
Data Integrity - Making sure that the database data reflects accurately
the model of the world that data is being kept about (1 mark) This
involves the use of integrity constraints, such as enforcing that the
values of an attribute are valid values. (1 mark)
Total: 10 Marks
Page 2 of 14
Databases © NCC Education Limited 2015
Marks
Question 2
Consider this scenario: A machine repair company uses engineers to carry out
tasks. An engineer may be allocated one or more tasks at a time. Some tasks will
require more than one engineer allocated to them.
b) Produce the data dictionary for this ER model using primary and foreign keys 5
with appropriate attributes.
Engineer
EngineerID(PK)
Name
Task
TaskCode(PK)
TaskDescription
TaskAllocation
Engineer(PK)(FK)
TaskCode(PK)(FK)
The total number of marks for this question is 5. Award 1 mark for each PK
in Engineer and Task up to a maximum of 2 marks. Award 1.5 marks for
each PK/FK pair in Task Allocation up to a maximum of 3 marks.
Total: 10 Marks
Page 3 of 14
Databases © NCC Education Limited 2015
Marks
Question 3
Note: Credit alternative valid answers. For example, a contrast with bottom-
up approaches such as normalisation.
b) Briefly explain the following concepts and provide ONE (1) example of each
concept.
i) Simple Attribute 2
Award 1 mark for the explanation and 1 mark for the example up to a
maximum of 2 marks.
It is where there might be more than one value for a given occurrence
of an entity type. For example, 'Telephone Number' where a person or
business might have many of these.
Total: 10 Marks
Page 4 of 14
Databases © NCC Education Limited 2015
Marks
Question 4
a) Identify THREE (3) problems that the duplication of data can cause in a database 3
system.
This wastes space (1 mark) and also raises the more serious problem of
compromising data integrity (1 mark) whereby data in one relation way
contradict the duplicated data in another relation (1 mark)
c) How would a database developer ensure that data duplication is avoided during 2
the development process?
By undertaking normalisation (1 mark) with relations normalised to at least
3rd normal form (1 mark)
Total: 10 Marks
Page 5 of 14
Databases © NCC Education Limited 2015
Marks
Question 5
Note: Alternative answers that mention DDL and DML should be credited.
State the functions of the different SQL commands that are used in this
statement.
The maximum number of marks awarded to this question is 6. Award 1
mark for each bullet point:
Total: 10 Marks
Page 6 of 14
Databases © NCC Education Limited 2015
Marks
Question 6
b) Briefly explain the term foreign key and provide ONE (1) example of the term. 2
Note: Credit other valid points. This includes: when a constraint can be
created (during table creation or later with an alter table command).
Total: 10 Marks
Page 7 of 14
Databases © NCC Education Limited 2015
Marks
Question 7
AdministrativeCentre
CentreCode CentreName
LON London
NOR Norwich
LIV Liverpool
SHE Sheffield
Region
RegionName NumberOfAthletes
EastEngland 30,123
NWEngland 154,367
SEEngland 28,450
Midlands 56,093
RegionCentre
CentreCode RegionName
LIV NWEngland
NOR EastEngland
LON SEEngland
NOR Midlands
a) Briefly explain how this database structure implements the fact that an 3
administrative centre can be allocated to more than one region and show how
this is represented in the database.
c) Write the SQL to insert a row to record a new region, EnglandWest with 34,090 3
athletes.
Total: 10 Marks
Page 9 of 14
Databases © NCC Education Limited 2015
Marks
Question 8
c) Describe how you would move from a set of logical entities to a detailed physical
design. You should say how you would proceed to represent the following parts
of the logical design:
iii) Domains 4
Representing domains as separate tables (1 mark). Some domains
should be implemented as separate tables known as look-up tables (1
mark). The number of values, and how dynamic the data is, are issues
here. If there are a large number of values in a domain and it is likely
that these will be added to or updated, then it likely that these should
be implemented as a separate table (1 mark). Otherwise they could be
implemented as a constraint (1 mark).
Total: 10 Marks
Page 10 of 14
Databases © NCC Education Limited 2015
Marks
Question 9
The following tables have been set up in a database for a system of appointments for
a literary agent
0… 1
4
Agent Appointment Author
1 0…
4
The total marks awarded for this question is 6. Award 1 mark for each
correct row in a table similar to the one shown below.
Transaction /Table Agent Appointment Author
T1 C
T2 D
T3 C
T4 R R R
T5 U
T6 D
Page 11 of 14
Databases © NCC Education Limited 2015
b) Briefly explain how users who require different access levels can be supported 4
and provide TWO (2) examples of this support using the Literary Agent system
above.
Note: Credit answers such as those that detail the GRANT and REVOKE
commands.
Total: 10 Marks
Page 12 of 14
Databases © NCC Education Limited 2015
Marks
Question 10
Consider the following table for a hotel database to keep track of guests and their
type of payment (card or cash). It has been created in SQL:
a) Write an SQL statement that inserts a new guest called Harry Cripps, whose 4
guest number should be ‘801’. Harry was born in 1941, on the 29th April. He pays
with cash.
Insert into Guests (1 mark for ‘Insert’, 1 mark for correct table)
Values (801,‘Cripps’,’Harry’,’29-APR-1941’,’Cash’) (1 mark for ‘Values’, 1
mark for actual values)
Total: 10 Marks
Page 13 of 14
Databases © NCC Education Limited 2015
Learning Outcomes matrix
Grade descriptors
Page 14 of 14
Databases © NCC Education Limited 2015