Data, databases and SQL – Edexcel IAL Information Technology (WIT1)
31 questions · page 2 of 3
Question text
2 Retail stores use databases.
(a) Normalising a relational database reduces data redundancy because it removes
duplicate data.
Explain one other benefit of normalising a relational database.
(2)
(b) A water sports store rents canoes, paddleboards and kayaks to customers.
The store uses a database.
(i) The database has rules to ensure that any data entered is valid.
Complete the table to name the type of validation used to identify invalid
data.
(2)
Information
Valid data
Invalid data
Validation type
Paddleboard
Equipment
Kayak
<blank>
names
Fishing canoe
Rental
period in
1 to 24
30
hours
(ii) The water sports equipment rented to customers is regularly inspected by
qualified technicians.
Complete the diagram to show a logical model of the database.
You must include:
•
two additional entities
•
four relationships and relationship types.
(6)
Equipment
Customer
Technician
(Total for Question 2 = 10 marks)
Question text
4 A retailer has stores all over the country.
(a) The retailer has a customer loyalty scheme.
Customer data is stored on the customer relationship management (CRM) system.
Figure 1 shows some of the fields used in the CRM system.
Field
Description
1
Customer number
2
Date of last store visit
3
Products bought in last visit
4
Code of last promotional email sent
5
Code of last promotional postal brochure sent
6
Date of last call to customer service phone line
7
Length of time waiting in customer service phone queue
8
Length of time to deal with the problem
Figure 1
The customer loyalty scheme could use fields 1 and 3 to identify a customer’s
favourite items, so that the customer can be sent a voucher.
(i) Explain one other way that the customer services department could use
two of the fields used in the CRM system.
You must include the field numbers in your explanation.
(2)
(ii) Explain one way that the marketing department could use three of the
fields used in the CRM system.
You must include the field numbers in your explanation.
(2)
(b) The retailer plans to replace its existing IT systems.
The systems being replaced are accounting, record keeping, purchasing and
electronic points of sale.
The retailer is planning ways to make the changeover from existing systems to
new systems.
Complete the table to give the type of changeover method in each case.
(4)
Plan
Changeover method
The accountants at every retail store will use both the existing
accounting software and the new accounting software for
the next month.
Head office will switch the records it holds for the stores in
Liverpool to the new system and leave the records of the
other stores on the existing system. It will switch the records
of the other stores to the new system when the new system
is working correctly.
The retail stores will use the new electronic point of sale
machines but will continue to use the existing purchasing
system for another three months.
The purchasing department at head office will close for a
week so that the existing software is removed and the new
software is installed on all computers in the department at
the same time.
(c) The retailer is reviewing its IT governance and policies.
Discuss the need for and features of risk management and disaster recovery
policies.
(6)
(Total for Question 4 = 14 marks)
Question text
5 A store sells items used by swimmers.
The store currently keeps records of sales in a spreadsheet.
Figure 2 shows some of the most recent orders.
Manufacturers are listed in brackets in the stock_bought column.
order
stock_bought
date
customer
1 goggles (Majestic)
31890
1 ear plugs (Coggs)
15/03/2021
Melody Mendoza
1 towel (Majestic)
2 ear plugs (Coggs)
31910
17/03/2021
Barbara Burke
2 caps (Latex Land)
40220
2 nose clips (Coggs)
19/03/2021
Sara Sanchez
1 goggles (Majestic)
40240
2 ear plugs (Latex Land)
19/03/2021
Sara Sanchez
1 cap (Coggs)
Figure 2
The store wants to create a database to store the data.
Create tables showing the database in third normal form.
Primary keys must be underlined.
Foreign keys must be indicated by an asterisk *.
Do not include any data in the tables.
(12)
(Total for Question 5 = 12 marks)
Question text
2 A company that sells flowers has replaced its paper-based transaction system with an
IT system.
(a) Flowers that are available to order are displayed on the company’s website.
Customers order flowers online.
The company’s current stock file is updated as each order is processed.
Stock and order reports are sent to the manager at the end of each day.
After reading the reports, the manager decides what new stock needs to be
ordered from the wholesaler.
Here is a partially completed dataflow diagram for this process.
1
B
A
Process order
Customer
Confirmation
D1
Daily orders file
C
D2 Current stock file
2
D
Current stock
Manager
Generate
E
reports
F
3
Purchase order
D3 Purchase order file
Generate
G
purchase order
Wholesaler
Dataflow is indicated by arrows.
Complete the table by stating what data is moving for the labels A to F.
The first one is done for you.
(6)
Label
Data
A
Order
B
C
D
E
F
G
(b) In the paper-based system orders were taken by phone and recorded on
order pads.
At the end of each day the manager reviewed the orders that had been placed
and purchased new stock.
Explain one advantage to the company of changing from a paper-based system
to an IT system.
(2)
(c) The company’s change from a paper-based system to an IT system has an
environmental impact.
(i) Explain one positive environmental impact.
(2)
(ii) Explain one negative environmental impact.
(2)
(d) When flowers are delivered to a customer, the driver records the event on a tablet.
On return to the company’s premises the delivery records are transferred from the
tablet to the company’s IT system.
(i) Identify the method that will transfer the records in the shortest time,
once a connection has been made.
(1)
A Bluetooth
B USB C cable
C Ethernet cable
D Micro USB cable
(ii) The tablet is location aware.
Explain how the tablet ‘knows’ when it is on company premises.
(2)
(Total for Question 2 = 15 marks)
Question text
3 A garden centre stores information about its plants and customers.
(a) The garden centre collects and stores both structured and unstructured data.
Explain the difference between structured and unstructured data.
Where possible, support your explanation using examples of structured and
unstructured data that the garden centre might use.
(6)
(b) The garden centre database includes these tables.
Sample data is shown in the tables.
tbl_supplier
supplierID
supplierName
telephoneNumber
GS35
Jon’s Plant Nursery
07700900563
GS67
Hall’s Cross Plants
01632775999
GT06
The Bulb and Tuber Centre
02079460883
tbl_plant
productID
officialName
commonName
flowerColour
height
supplierID
GC56
Teucrium fruticans
Tree germander
Purple
1.2
GS67
GC57
Cheilocostus speciosus
Crêpe ginger
White
1.3
GS22
GD39
Mimosa pudica
Sensitive plant
Pink
1.5
GT03
GD40
Mimosa turneri
Desert mimosa
Pink
3
GT03
(i) Name a primary key used in the database.
(1)
(ii) Name a foreign key used in the database.
(1)
(iii) State the data type for height.
(1)
(iv) State the data type for telephoneNumber
(1)
(c) A customer brings in a photograph of a plant she wants to buy.
She says that the plant has white flowers and is at least two metres tall.
The garden centre identifies the plant as a type of mimosa.
Write an SQL query that:
•
finds all the mimosa plants that meet the criteria
•
displays the official name of each plant, and the names and telephone
numbers of the suppliers, if any, who stock that plant
•
orders the list alphabetically by supplier name.
(6)
(Total for Question 3 = 16 marks)
Question text
2 An engineering company is moving its computer centre to new premises and must
ensure that all its data will be available at the new location.
(a) The project manager has drawn up this task list for the move.
Data availability task list
Task
Task description
Completed by
Notes
Review and test existing data files and
1
9 July
Start 5 July
backups
Reserve enough space for all
2
Reserve additional cloud storage space
10 July
files for one week
3
Install hardware at new location
10 July
Start 5 July
4
Install software at new location
13 July
Start when hardware is in place
Move files after review and
5
Move existing files to cloud storage
15 July
testing
Create and test backups at close of
Project manager to check this
6
business at original location, send to
15 July
has been done
cloud
Physical movement date
7
16 July
Must be completed on 16 July
Move to local system at new location
User testing and familiarisation with
2 days, with possible over run of
8
18 July
new system
2 days
Create a Gantt chart in the grid for the tasks listed.
You should assume that the company works seven days a week.
Your chart should indicate any dependencies.
Your chart should indicate any constraints.
(6)
Task details
July
Date
Task
Constraints
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1
2
3
4
5
6
7
8
(b) The engineering company uses a range of tools.
Each tool has a warranty from the supplier.
The warranty data for the tools has been corrupted.
The IT staff have recovered some of the data.
Here are three of the 500 records that have been recovered and are no
longer corrupted.
warranty number gd2347166
warranty number
gd6452166
toolID
1635
toolID
1774
tool
drill
tool
welder
make
massif
make
arcright
model
xs2021
model
yt3225
supplierID
gd116
supplierID
gd116
supplier email
[email protected]
supplier email
[email protected]
when purchased
23/10/1996
when purchased
16/07/1999
purchase price
£2310.96
purchase price
£2607.99
warranty number
mp0244673
toolID
3006
tool
press
make
maxpasc
model
mp219s
supplierID
mp157
supplier email
[email protected]
when purchased
30/03/2005
purchase price
£216.89
The IT staff have decided to create a new, single table database to hold the data.
The warranty number, purchase date and supplier email fields must be validated
to check that they are in the correct format.
Create a data dictionary for the database, using the table on the opposite page.
(6)
Table name
Tbl_Warranty
Attribute / field name
Data type
Primary key
Field size
Validation
warranty number
toolID
tool
make
model
supplierID
supplier email
when purchased
purchase price
(Total for Question 2 = 12 marks)
Question text
6 Many countries use big data methods to implement electronic health records (EHRs)
for their citizens.
Each citizen has their own EHR.
The EHR can include:
•
medical history
•
outcomes of tests
•
diagnoses
•
demographic information such as age, sex, etc.
•
family medical history.
The data is stored in a data warehouse and is analysed to provide information for
decision making.
Governments say there is a net benefit to citizens’ welfare and to the country from
using EHRs.
Healthcare providers say that patient care and medical outcomes are improved.
Evaluate the use of data analytics to plan and improve healthcare.
Your answer could include:
•
a discussion of the types of data analytics, with relevant examples of how they
can be used to plan and improve healthcare:
•
descriptive
•
prescriptive
•
predictive
•
an outline of the common tool functions that might be used, such as natural
language search or text analysis
•
a conclusion about how well data analytics will deliver the desired improvements.
(12)
(Total for Question 6 = 12 marks)
Question text
4 Maira organises a video-gaming league, where teams of players compete against
each other in online battles. Each team plays every other team twice, once in a
defending role and once in an attacking role.
Each player belongs to one team.
Each player may create and own multiple characters.
Maira is creating a database to store the information needed.
These four entities will be used in the database:
Team (Team_ID, Team_name, Team_email, League_position, Points, Battles_fought)
PlayerPersonal (Player_ID, Team_ID, Player_name, Player_email)
PlayerCharacter (Character_ID, Player_ID, Character_name, Character_role, Gender,
Species, Level)
Battle (Battle_ID, Defence_team_ID, Attack_team_ID, Battle_date, Battle_time)
(a) Here is a partially completed entity relationship diagram for this database.
Complete the diagram to show:
•
primary keys, underlined
•
foreign keys, with an asterisk
•
relationships.
(6)
Team
Battle
Battle_ID
Defence_team_ID*
PlayerPersonal
PlayerCharacter
(b) When a player wants to play the online game they must log in to their account.
If a player has forgotten their password, they must start a ‘change password’
process.
Clicking on the ‘forgot my password’ button starts the process.
The player must then:
•
enter their email address
•
enter their date of birth
•
click the ‘change password’ button.
The system then checks the email address and date of birth against stored
records.
If a match is found a random password is generated and emailed to the player.
If a match is not found an error message is generated and the player must try
again.
Here is a partially completed flowchart.
Complete the flowchart to show how the ‘change password’ process works.
(6)
Start
Click ‘forgot my
password’ button
(Total for Question 4 = 12 marks)
Question text
1 A company owns and operates airports in several countries.
The company collects large amounts of data and uses Big Data techniques to
analyse it.
(a) One characteristic of Big Data is the volume of data collected.
(i) Give two other characteristics of Big Data.
(2)
1
.
2
.
(ii) High capacity storage devices are required to handle Big Data.
State one other infrastructure requirement for Big Data.
(1)
(b) The company relies on a suitable infrastructure (devices and connections) to
make use of the data it collects.
The infrastructure may develop a bottleneck.
A bottleneck could be slow storage media at the company’s data centre.
A solution for this bottleneck would be to upgrade the storage media from
mechanical hard drives to solid state drives.
Give one other possible infrastructure bottleneck and a solution.
(2)
Bottleneck
Solution
(c) The company collects and stores data at airports in several countries.
(i) One method of controlling data storage is to use a database management
system (DBMS).
A DBMS is not suitable for this Big Data system.
Explain why a DBMS may not be suitable.
(2)
(ii) The company uses symmetric encryption to keep data secure during
transmission between countries.
Describe how symmetric encryption works.
(2)
(iii) An alternative to symmetric encryption is asymmetric encryption.
Explain one reason why the company uses symmetric encryption rather than
asymmetric encryption for data transmission.
(2)
(d) The company’s Big Data operations use a distributed system.
(i) Describe what is meant by the term distributed system.
(2)
(ii) One problem with distributed systems is controlling concurrency.
Give one consequence of poor concurrency control in a distributed system.
(1)
(e) The company uses natural language processing to provide a translation service
for passengers at an airport.
The service uses a keyboard and screen to provide a chat link to a help desk.
(i) Give one reason why a passenger may need to use the language translation
service.
(1)
(ii) Give one benefit to the company of providing the language translation
service.
(1)
(iii) Give one drawback of the language translation service to passengers.
(1)
(Total for Question 1 = 17 marks)
Question text
5 Evan runs a shoe shop. He sells handmade shoes.
The shoes are made to order but Evan keeps a selected range in stock for customers
to see.
(a) At present Evan uses a spreadsheet to keep track of his stock.
The table shows an extract from the spreadsheet.
Shoe
Company
Company
Company
Order
Colours in
model
name
telephone
email
time
stock
Melody
Dezi Hillams 7700 900430
[email protected]
7 days
black, green, red
Symphony
9 days
blue, red, yellow
Concerto
5 days
black, white
Snugfoot
Orchid
01632 960072 [email protected]
10 days
grey, canary
Shoes
Lily
2 weeks
pearl, white
Peony
10 days
crimson, green
Tulip
12 days
aqua, pearl
Stefan
Metro
7700 900147
[email protected] 2 weeks
smoke, tan
Mannan
Urban
2 weeks
bronze, stone
Evan wants to replace his spreadsheet with a database.
You must develop a normalised database solution for him.
Create entities showing the database in third normal form.
Identify all primary keys (single attribute or composite) and foreign keys.
(9)
(b) A company uses a Database Management System (DBMS).
One function of a DBMS is to manage security.
The DBMS requires users to login with a username and password.
Describe one other way that a DBMS could be used to manage security in a
database.
(2)
(Total for Question 5 = 11 marks)
Question text
4 A small online store uses a database to track its transactions.
These five entities will be used in the database:
Buyer (Buyer_ID, Username, Password, Email, Shipping_name, Shipping_address, Phone)
Product (Product_ID, Product_name, Description, Price, Stock_remaining)
Purchase (Purchase_ID, Buyer_ID, Product_ID, Quantity, Delivery_stage)
Shopcart (Shopcart_ID, Buyer_ID, Product_ID, Quantity)
Review (Review_ID, Buyer_ID, Product_ID, Comment)
A buyer can purchase only one product at a time.
The buyer puts a product into their shopcart until they are ready to pay for it.
Once paid for, a purchase record is generated for the product.
Buyers can leave product reviews.
(a) Sometimes a value for a field is calculated rather than input.
Identify which one of these fields can be calculated.
(1)
A Purchase.Quantity
B Shopcart.Quantity
C Purchase.Delivery_stage
D Product.Stock_remaining
(b) Here is a partially completed entity relationship diagram for this database.
Complete the diagram to show:
primary keys, which must be underlined
·
foreign keys, which must have an asterisk (*)
·
relationships and types.
·
Review
Product
Buyer
Shopcart
Purchase
Purchase_ID
Product_ID *
(6)
(c) When a buyer purchases a product, they must log on to their account. The store
uses two-factor authentication.
One factor is the buyer’s password, stored in the database.
The second factor is a one-time code generated during the logon process and
sent to the user’s phone. The code is time limited to five minutes. If the user does
not use the code within that time, they must restart the logon process.
There is no limit on how many times a user may enter a username, password or code.
Complete the flowchart to show how the logon process works.
(6)
Start
Input username
and password
(d) The owner of the online store uses structured query language (SQL) to get
information from the database.
Give three reasons why SQL is used to manipulate data in databases.
(3)
1
.
2
.
3
.
(Total for Question 4 = 16 marks)
Question text
2 Large distributed databases process millions of queries and data updates every day
across global networks.
(a) Give three reasons why it is better to use a distributed database rather than a
single database at one location.
(3)
1
.
2
.
3
.
(b) One of the problems with a distributed database is that of concurrency.
(i) State what is meant by concurrency in this context.
(1)
(ii) Explain why concurrency might cause problems with a distributed database.
(3)
(c) It is essential that a relational database is normalised.
Discuss the problems caused by data redundancy and how normalisation reduces
the problems.
(6)
(Total for Question 2 = 13 marks)
Question text
3 Members of a photography club store images in online albums.
The club wishes to create a database containing details of these images.
People will be able to view the images and leave comments.
Figure 1 shows an early draft of the database structure.
Photograph
Album
Image ID
Album title
File name
Description
Image description
Number of views
Date uploaded
Photographer name
Comments
Photographer email
Photographer telephone
Comment date/time
Comment text
Location
Location name
Figure 1
(a) Complete this data dictionary for the Photograph entity shown in Figure 1.
(6)
Table name
Attribute / field
Data type
Key (P/F)
Field size
Format / validation
name
Image_ID
File_name
Image_description
Date_uploaded
Photographer_name
Photographer_email
Photographer_
telephone
(b) Members of a photography club store images in online albums.
The club wishes to create a database containing details of these images.
People will be able to view the images and leave comments.
A photographer may have several albums.
Each photograph is only stored in one album.
Figure 1 is repeated here.
It shows an early draft of the database structure.
Photograph
Album
Image ID
Album title
File name
Description
Image description
Number of views
Date uploaded
Photographer name
Comments
Photographer email
Photographer telephone
Comment date/time
Comment text
Location
Location name
The draft structure is not yet in third normal form.
Create an E–R diagram showing the normalised logical data model for
this database.
All attributes must be included.
Primary keys must be underlined.
Foreign keys must be indicated by an asterisk *.
Relationship types must be shown.
(9)
Draw your ERD here.
(Total for Question 3 = 15 marks)
Question text
4 A school is designing a database to record details of its students and the subjects
they study.
A student can study many subjects.
A teacher can teach many classes.
A class is taught by one teacher.
These five entities will be used in the database:
Student (Last name, First name, StudentID, Date of birth)
Subject (SubjectID, Subject title)
Teacher (TeacherID, Last name, First name)
Class (Start date, TeacherID, End date, SubjectID, Room number, ClassID)
Class registration (ClassID, StudentID)
(a) Here is a partially completed entity relationship diagram for this database.
Complete the diagram to show:
●
primary keys, underlined
●
composite primary keys, underlined
●
foreign keys, with an asterisk
●
relationships.
(6)
Student
Teacher
Class_registration
Class
Subject
(b) The school database will hold structured data.
Discuss why a relational database is suitable for handling structured data.
(6)
(Total for Question 4 = 12 marks)
Question text
5 Carlo is designing a relational database. As part of the process he will create a data dictionary.
(a) Data dictionaries can be active or passive.
Explain how an active data dictionary differs from a passive data dictionary when
the database is running.
(3)
(b) One of the functions of a data dictionary is to hold information about the data
objects in the database (metadata).
Describe two other functions of a data dictionary.
(4)
1
2
(c) Part of Carlo’s database deals with contacts.
Figure 2 shows a logical data model for the contacts part of the database.
Contact
Address
Contact ID
Address ID
First name
Contact ID
Last name
Address type
Date of birth
Address line 1
Marital status
Address line 2
Telephone
Town
Employer
Postcode
Figure 2
Carlo has also made some notes about the data.
● Marital status, create list: Married, Single, Divorced, Widowed
● Date of birth in format DD/MM/YYYY
● Date of birth to be validated to check age is at least 18 years
● These fields must be filled:
Contact ID, First name, Last name, Telephone, Address ID, Address type,
Address line 1, Postcode
Create a data dictionary for the contacts part of the database.
(9)
Table name
Attribute / field
Data
Key
Reqd
Field
Description / notes
name
type
(P/F)
(Y/N)
size
Table name
Attribute / field
Data
Key
Reqd
Field
Description / notes
name
type
(P/F)
(Y/N)
size
(Total for Question 5 = 16 marks)