Data, databases and SQL – Edexcel IAL Information Technology (WIT1)

2 questions · Clear filters

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
WIT1 Unit 1 · Oct/Nov 2021 · Question 4Oct/Nov 2021Unit 112 marks
Loading question…
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)

2
WIT1 Unit 1 · Oct/Nov 2020 · Question 4Oct/Nov 2020Unit 112 marks
Loading question…
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)

Advertisement