
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?
pupilID
schoolID
forename
surname
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
27 questions
Inverse Variation
Presentation
•
9th - 12th Grade
24 questions
Copyright
Presentation
•
9th - 12th Grade
29 questions
Ch. 15 Money & Banking
Presentation
•
9th - 12th Grade
24 questions
Computer Science Principles Unit 6 Review
Presentation
•
9th - 12th Grade
25 questions
Crime Scene Investigation and Evidence Collection Part 2
Presentation
•
9th - 12th Grade
25 questions
Mandatos informales (+)(-)
Presentation
•
9th - 12th Grade
25 questions
newton's laws
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Logos
Quiz
•
6th - 9th Grade
10 questions
Test Your Knowledge with 15 Fun Trivia Questions
Interactive video
•
6th - 10th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
21 questions
Factoring Trinomials (a=1)
Quiz
•
9th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
22 questions
Regular Preterite -AR-ER-IR-
Quiz
•
12th Grade