

N5 Revision DBB
Presentation
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
E Reavey
Used 2+ times
FREE Resource
7 Slides • 24 Questions
1
N5 Computing
Exam Revsion 2
2
Analysis
At the analysis stage of developing a database, you must identify end-user and functional requirements
End-user requirements describe tasks that a user of the database would want to carry out
Functional requirements describe what must be created or coded in the database
3
Multiple Choice
Is the following is an end-user requirement or a functional requirement?
The database must be able to produce a list of all S4 pupils in alphabetical order of surname
End User Requirement
Functional Requirement
4
Multiple Choice
Is the following is an end-user requirement or a functional requirement?
Different tables are required to store details of all subjects, sets, classes and pupils
End User Requirement
Functional Requirement
5
Multiple Choice
Is the following is an end-user requirement or a functional requirement?
When a new pupil joins the school, all of their details and subjects must be added to the timetable
End User Requirement
Functional Requirement
6
Design
Two tools/tasks from the design stage are:
Data Dictionary - to describe all the attributes to be created in each entity
Entity-Relationship Diagram - to show the connection and relationship between two entities joined with a primary and foreign key
7
Multiple Choice
Attribute types
There are five attribute types we need to know for data stored in a database field
Which of the following is not attribute type?
Number
Time
Integer
Boolean
Date
8
Multiple Choice
Validation checks
There are 4 types of validation check, used to make sure data entered in a database field is sensible and allowable
Which validation check is this an example of?
Data must be a number between 1 and 6
Presence check
Length check
Range check
Restricted choice
9
Multiple Choice
Validation checks
There are 4 types of validation check, used to make sure data entered in a database field is sensible and allowable
Which validation check is this an example of?
A username must be 10 characters long
Presence check
Length check
Range check
Restricted choice
10
Multiple Choice
Validation checks
There are 4 types of validation check, used to make sure data entered in a database field is sensible and allowable
Which validation check is this an example of?
House must be one of G, L, O or X
Presence check
Length check
Range check
Restricted choice
11
Multiple Choice
Validation checks
There are 4 types of validation check, used to make sure data entered in a database field is sensible and allowable
Which validation check is this an example of?
You cannot leave the date of birth field blank
Presence check
Length check
Range check
Restricted choice
12
Database Entities/Tables
Data in a database file is organised into entities/tables to store related information
An entity/table is made up of multiple attributes/fields to store a single item of information
You can add records to the table storing information about one person or thing
Each table must have a primary key, a unique identifier for each record in a table
A database may have more than one table and the tables can be linked together using a foreign key
13
Database Entities/Tables
Data in a database file is organised into entities/tables to store related information
An entity/table is made up of multiple attributes/fields to store a single item of information
You can add records to the table storing information about one person or thing
Each table must have a primary key, a unique identifier for each record in a table
A database may have more than one table and the tables can be linked together using a foreign key
14
You identify the attributes to be stored for each entity in a data dictionary
Indicate primary or foreign keys using the notation PK or FK
Always indicate Yes or No in the required column
Show the criteria of the validation rules
Data Dictionaries
15
Draw
Identify the foreign key
16
Show entities as a rectangle and attributes as ovals, underline PK, star (*) foreign key, show one to many relationship, add a word to describe the relationship
E-R Diagrams
17
Multiple Choice
What is the relationship between the entities?
One patient can go to one doctor
One patient can go to many doctors
One doctor has one patient
One doctor has many patients
18
Multiple Choice
What is the primary to foreign key relationship?
Department.DepartmentCode = Staff.DepartmentCode
Doctor.StaffID = Patient.StaffID
Doctor.StaffID = Patient.PatientID
Doctor.DateJoined = Doctor.DateRegistered
19
Multiple Choice
What is the relationship between the entities?
One department employs many staff
One employee is employed by many departments
One employee is employed by one department
Many departments employ many staff
20
Multiple Choice
What is the primary to foreign key relationship?
Department.DepartmentCode = Staff.DepartmentCode
Department.Department = Staff.Staff
Department.DepartmentCode = Staff.StaffIDNumber
Department.DeptName = Staff.StaffName
21
Multiple Choice
What is the primary key in the Pupil table?
pupilID
schoolName
surname
schoolID
22
Multiple Choice
What is the primary key in the School table?
schoolID
schoolName
23
Multiple Choice
What is the foreign key and in which table does it appear?
pupilID in Pupil table
forename in Pupil table
schoolID in Pupil table
schoolID in School table
schoolName in School table
24
Open Ended
What would be the result of this query?
SELECT forename FROM Pupil WHERE pupilID = 'S0004';
25
Open Ended
What would be the result of this query?
SELECT forename FROM Pupil WHERE surname = 'Smith';
26
Open Ended
What would be the result of this query?
SELECT forename FROM Pupil, School WHERE School.schoolID = Pupil.schoolID AND schoolName = 'Kirk Lane Junior School';
27
Open Ended
What would be the result of this query?
INSERT INTO Pupil (pupilID, forename, surname, schoolID) VALUES ('S0006', 'Emma', 'Jones', 'P0018');
28
Open Ended
What would be the result of this query?
UPDATE Pupil SET schoolID = 'P0018' WHERE schoolID = 'P0011';
29
Open Ended
What would be the result of this query?
DELETE FROM School WHERE schoolID = 'P0011';
30
Open Ended
Referential Integrity
Describe the problem in the tables below.
31
Open Ended
Sorting
How has the Pupil table been sorted?
N5 Computing
Exam Revsion 2
Show answer
Auto Play
Slide 1 / 31
SLIDE
Similar Resources on Wayground
25 questions
Predatory Lending
Presentation
•
12th Grade
25 questions
M2U4 - Using Databases (SY25-26 / C103-103I)
Presentation
•
University
23 questions
E11.U4.Grammar: Present perfect v.s Past simple
Presentation
•
12th Grade
25 questions
ECONOMICS TOPIC 2 LESSON 1
Presentation
•
12th Grade
25 questions
Public Opinion
Presentation
•
11th - 12th Grade
28 questions
ECONOMICS TOPIC 3 LESSON 6
Presentation
•
12th Grade
28 questions
L2: Introduction to Secondary School
Presentation
•
12th Grade
Popular Resources on Wayground
10 questions
Main Idea and Supporting Details
Quiz
•
3rd - 6th Grade
20 questions
Math Review
Quiz
•
3rd Grade
14 questions
25-26 SY 8th Grade EOY Benchmark
Quiz
•
8th Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Math Review
Quiz
•
6th Grade
20 questions
Context Clues
Quiz
•
6th Grade
21 questions
EOY Grade 6 Benchmark Assessment - Content Skills
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
Discover more resources for Computers
8 questions
Writing Equations from Verbal Descriptions
Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
59 questions
Bio Final Exam Sem 2 with marathon runner
Quiz
•
9th - 12th Grade
10 questions
Ameoba Sisters: Introduction to cells
Interactive video
•
9th - 12th Grade
11 questions
Graph Match
Quiz
•
9th - 12th Grade
29 questions
Antibiotic Resistance
Quiz
•
9th - 12th Grade
6 questions
Solving Rational Equations 1
Quiz
•
10th - 12th Grade