Database and file concepts – A Level Information Technology (9626)
Question text
10 Below is an excerpt from a database showing some holiday bookings.
Country
Group size
Code
Discount
Duration
Egypt
4
EGY
10
Malaysia
5
MAL
14
Thailand
8
THA
7
Costa Rica
4
COZ
10
Sri Lanka
2
SRI
14
Bahamas
3
BAH
21
Indonesia
4
IND
14
Indonesia
4
IND
10
Costa Rica
5
COZ
14
Egypt
6
EGY
14
Sri Lanka
4
SRI
21
Egypt
8
EGY
7
Thailand
5
THA
7
Costa Rica
4
COZ
14
Costa Rica
2
COZ
7
Indonesia
2
IND
14
Malaysia
5
MAL
14
Thailand
2
THA
14
Sri Lanka
6
SRI
14
Thailand
3
THA
14
Egypt
4
EGY
14
Malaysia
2
MAL
7
Indonesia
2
IND
14
Malaysia
4
MAL
10
Bahamas
4
BAH
7
Costa Rica
4
COZ
14
Thailand
5
THA
14
Sri Lanka
6
SRI
10
Thailand
8
THA
7
Thailand
4
THA
14
Egypt
4
EGY
7
Egypt
2
EGY
14
(a) (i)
Describe the steps that need to be followed to set up a dynamic query to allow you to
search on the Group size and Code fields. All fields are to be printed except Discount.
…
…
…
…
…
…
…
…
…
… [5]
(ii)
You run the query and type in the Group size as 4 and the Code as EGY.
Write down the Durations that will be printed out.
…
… [2]
(b) The Duration field has only the values shown in the database excerpt. The database needs to
be set up to allow you to enter the data in this field without using the keyboard to type in the
value each time.
Describe how this would be done and explain how you would now enter the data.
…
…
…
…
…
…
…
Question text
3
The secretary of a company is transferring workers’ records from paper to a new computer
database. She wishes to make sure the data in the database is accurate. To check the data she is
using verification and validation.
Using an example, or otherwise, explain why she is using validation as well as verification.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
Question text
7
A managing director of a company supervises other directors. Each director has three departments
they are responsible for. Each department has several workers. The company stores information
about all its workers in a hierarchical database.
Explain what is meant by a hierarchical database management system and describe how such a
system would be used to store the workers’ data.
…
…
…
…
…
…
…
…
…
…
…
… [5]
Question text
10 A car salesroom has a relational database which stores details of the cars and the customers
who have purchased a car. The manager uses it to search for information about the cars and the
customers. She also produces reports based on these searches.
Tables
Queries
Customers second names beginning with
Price of car
Forms
Customers
Reports
All cars in stock
Price less than $20000
(a) She wants to have an easier way of accessing the queries, forms and reports.
Design a switchboard for her which will allow her to go to any of the reports, forms or queries
already set up as shown in the image above.
[4]
(b) Referring to any four interactive items on your switchboard explain what will happen if they
are selected.
Item 1 …
…
…
Item 2 …
…
…
Item 3 …
…
…
Item 4 …
…
… [4]
(c) Below is a diagram showing the tables in the database.
Cars
Orders
Customers
Car–Code
ID
Customer–code
Make
Order–No
First Name
Model
Second Name
Customer–code
Price
Address–1
Car–Code
Address–1
The car salesroom manager wanted a list of cars made by Frod as well as, in the same list,
any cars ordered by customers whose second name begins with B.
The printout shows the makes and models of cars, first and second customer names who
have ordered them and the order number.
Make
Model
First Name
Second Name
Order_No
Frod
Deomon
Alan
Sutton
9
Frod
Deomon
Bruce
Silversmith
8
Frod
Deomon
Johann
Schmidt
5
Frod
Deomon
Brian
Biggins
3
Olap
Azum
George
Babak
10
Yatoya
Yangtse
Kulvir
Bains
7
Describe, in detail, the steps required to set up a query which would display this list.
…
…
…
…
…
Question text
8
Here is a section of a database showing the wages paid and hours worked by some workers in a
company.
New data is about to be entered but it will need to be validated. Validation rules will need to
be created to make sure the data is sensible. Two validation rules would be appropriate for the
Telephone field and one for the Weekly wage field. You can assume the wages shown include
the minimum and maximum that the company pays.
J215VENUES
Family name
First name
Telephone
Weekly wage Hours worked
47
Smith
John
01632 267145
220
51
Prudhomme
Pierre
01632 342016
250
42
Gonzales
Jose
01632 941368
260
40
Signusson
Lars
01632 643821
240
45
Thorsvald
Olaf
01632 811276
190
48
Mueller
Dieter
01632 351156
180
43
Lucio
Silvio
01632 281146
210
51
Boko
Peter
01632 444707
260
41
Ndlovu
Joseph
01632 319249
300
40
James
Peter
01632 860787
310
40
Gordon
James
01632 205775
280
45
McDonnell
Jamie
01632 430332
250
50
Kelly
Peter
01632 832287
290
Describe, using examples from the data shown, the validation rules that will be created. For each
one, give examples of test data (do not include normal data) that would test the validation rule
works and give reasons for each choice.
(a) Telephone:
(i)
Validation rule 1 …
…
…
… [2]
(ii)
Test data …
…
Reason …
… [2]
(iii)
Validation rule 2 …
…
…
… [2]
(iv)
Test data …
…
Reason …
… [2]
(b) Weekly wage:
(i)
Validation rule …
…
…
… [2]
(ii)
Question text
9
Some database systems use the indexed sequential method of accessing data.
Describe the features of indexed sequential access and how it is used.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]
Question text
3
Indira is the manager of a holiday booking company. She is in the process of updating the
company’s database of holidays. She has a file newholidays.csv which she wants to import to
the database as a new table.
Describe the steps she needs to follow to do this.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]
Question text
11
A company keeps details of their payroll data in a single computer file.
Evaluate the use of spreadsheet and database software to store this data using examples related
to payroll for your argument.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]
Question text
12 Below are two tables from a college database. A relationship links the two tables.
Students
Coursecode
First_name
Phone
Studentid
P301
Ravinder
111000733
F1278
F402
Avtar
111016620
F3794
B115
Shokat
117421600
F4921
B115
Ravinder
114006451
F9153
Courses
Course_Title
Coursecode
Physics
P301
English
E402
Biology
B115
Maths
M301
(a) Explain which fields would be set for primary keys, a compound key and a foreign key, giving
reasons for each choice.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
(b) A list is required of all the students studying Biology.
Write down the steps you would need to take to produce this list using the Students table
only. You may assume the database is already open.
…
…
…
…
…
…
…
…
…
Question text
6
Below is an extract from a company’s database which shows the details of their factory workers.
Workers_Id
Family_Name
First_Name
Department
Salary
$43,000.00
031597
Cisse
Koulthum
Extrusion
$35,000.00
047006
Traore
Adama
Cold rolling
$39,000.00
131654
Dia
Omar
Extrusion
$34,500.00
235804
Kone
Mame
Foundry
$32,000.00
239412
Diop
Souleymane
Foundry
$37,500.00
243303
Fall
Leo
Hot rolling
$36,000.00
471584
Contee
Henry
Cold rolling
$29,000.00
486439
Keita
Sundiata
Tube production
$41,500.00
500368
Gallo
Jerry
Extrusion
512759
Diallo
Noumu
Tube production
$28,500.00
Describe the steps you would use to create a report containing the Workers_Id number and Salary
only, using the most efficient method to extract all the Hot rolling or Cold rolling workers whose
salary is greater than $35,000.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
Question text
8
A college keeps records of its A Level students and the subjects they study in a database. It has
the following tables:
Students’ names
Students’ other personal data
Details of when they started studying the subject
All the possible subjects which can be taken by A Level students.
These tables are linked as shown below.
students_2
students_1
joined_subject
subjects
1
1
1
1
Student_ID
Student_ID
Student_ID
Subject_code
Phone_number
First_name
Subject_code
Subject_name
Address
Last_name
Date_joined
Subject_description
Date_of_birth
Using examples from the tables shown above or otherwise:
(a) Describe the three relationships:
(i)
one-to-one
…
…
…
…
… [2]
(ii)
one-to-many
…
…
…
…
… [2]
(iii)
many-to-many
…
…
…
…
…
…
…
…
… [4]
(b) Define ‘referential integrity’ and explain why it is so important.
…
…
…
…
Question text
9
Siegfreid has created a word processed document using ‘proprietary software’. Simon has
suggested that he should save it in an ‘open-source file format’.
(a) Describe what is meant by ‘proprietary software’.
…
…
…
…
…
…
… [3]
(b) Describe what is meant by an ‘open-source file format’.
…
…
…
…
…
…
… [3]
Question text
1
Tick the four most accurate statements about relational databases.
P
Duplication of data is avoided saving storage space.
Every individual mistake in the database has to be manually corrected in all tables.
It is easier to produce cross-tabular reports in relational databases than with flat file
databases.
The only two possible relationships are one-to-one and many-to-one.
It is impossible to make mistakes when entering data into a relational database.
Tables can be linked using a key field.
There must be at least three tables in a relational database.
Primary keys are unnecessary whereas you must have them with flat file databases.
Relational databases cannot store as much information as flat file databases.
Referential integrity helps to prevent database users entering inconsistent data.
[4]
Question text
4
Helen is the manager of a company which sells cars. She is going to produce a blog about the
success of the company. She will use word processing, spreadsheets, databases and other
software.
Evaluate the different types of software she will use to produce the blog.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]
Question text
7
Fig. 1 below shows a small extract from a school database. All students shown are in year
groups 9, 10 or 11 depending on their year of birth. Each student’s year group, which is not part of
the database, is shown in Fig. 2.
student_ID
student_name
option _1
option_2
year of birth
100132
Marian Griffith
Geography
Art
2001
101648
Manjit Dupay
Sociology
Design Tech
2003
103457
Ho Chan
History
Spanish
2002
104895
Johan Schmidt
Geography
Art
2002
105456
Paul Dugarry
History
German
2001
105645
Li Cho
History
Latin
2002
Fig. 1
Name
year_group
Marian Griffith
11
Manjit Dupay
9
Ho Chan
10
Johan Schmidt
10
Paul Dugarry
11
Li Cho
10
Fig. 2
The year_group field needs to be added to the database and will be a calculated field.
(a) Explain how you would set up the calculated year_group field.
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
(b) You have been asked to produce a well-formatted report showing the year 10 students
studying History. The report will contain a list of these students showing only each student’s
name, identity number and the total number of students involved.
Explain how you would produce such a report.
…
…
…
…
…
…
…