
N5 Database Design & Development Revision
Presentation
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Tracy Mutter
Used 2+ times
FREE Resource
8 Slides • 24 Questions
1
National 5 Computing Science
Database Design & Development Revision
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
functional
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
functional
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
functional
6
Design
Two tools/tasks from the design stage are:
Data Dictionary - to describe all the attributes to be created in each entity. It is a plan for the database.
Entity-Relationship Diagram - to show the connection and
relationship between two entities joined with a primary and foreign key.
7
Multiple Choice
Which of the following is not attribute type?
Time
Date
Integer
Text
8
Validation checks
There are 4 types of validation check, used to make sure data entered in a database field is sensible and allowable
Presence check
Length check
Range check
Restricted choice
9
Fill in the Blanks
Type answer...
10
Fill in the Blanks
Type answer...
11
Fill in the Blanks
Type answer...
12
Fill in the Blanks
Type answer...
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
Data Dictionaries
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
15
E-R Diagrams
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
16
Hotspot
Identify the foreign key
17
Hotspot
Identify the primary keys
18
Dropdown
19
Dropdown
20
Labelling
What is the primary key in the Pupil table?
schoolID
forename
surname
pupilID
21
Relational databases
What is the primary key in the School table?
22
Labelling
What is the primary key in the School table?
schoolName
schoolID
23
Multiple Choice
Which is the foreign key?
Pupil.pupilID
Pupil.schoolID
School.schoolID
24
Multiple Choice
What is the relationship between Pupil and School?
1:1
1:M
M:M
M:1
25
Fill in the Blanks
Type answer...
26
Fill in the Blanks
Type answer...
27
Fill in the Blanks
Type answer...
28
Multiple Choice
What would be the effect of this query?
INSERT INTO Pupil (pupilID, forename, surname, schoolID)
VALUES ('S0006', 'Emma', 'Jones', 'P0018');
Insert Record
Amend Record
Delete Record
29
Multiple Choice
What would be the effect of this query?
UPDATE Pupil SET schoolID = 'P0018'
WHERE schoolID = 'P0011';
No records changed
1 record changed
4 records changed
All records changed
30
Multiple Choice
What would be the effect of this query?
DELETE FROM School
WHERE schoolID = 'P0011';
1 record deleted
4 records deleted
all records deleted
no records deleted
31
Fill in the Blanks
Type answer...
32
Multiple Choice
How has this table been sorted?
schoolID Descending, surname Ascending
pupillid Descending, surname Ascending
surname Ascending, forename Ascending
National 5 Computing Science
Database Design & Development Revision
Show answer
Auto Play
Slide 1 / 32
SLIDE
Similar Resources on Wayground
24 questions
Unit 5 - Gas Laws
Presentation
•
9th - 12th Grade
24 questions
TV Studio Basics
Presentation
•
9th - 12th Grade
25 questions
Periodic Table Families and Properties
Presentation
•
9th - 12th Grade
25 questions
Macromolecules
Presentation
•
9th - 12th Grade
25 questions
2.9 Covalent Bonding
Presentation
•
9th - 12th Grade
26 questions
Matter cycles
Presentation
•
9th - 12th Grade
24 questions
Unit Zero lesson 2 cafeteria
Presentation
•
9th - 12th Grade
24 questions
Atomic Models
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade