Search Header Logo
N5 Database Design & Development Revision

N5 Database Design & Development Revision

Assessment

Presentation

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Tracy Mutter

Used 2+ times

FREE Resource

8 Slides • 24 Questions

1

media

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

1

end-user

2

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

1

end-user

2

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

1

end-user

2

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?

1

Time

2

Date

3

Integer

4

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

media

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

media

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

Question image
This database has a ​
relationship between Doctor and Patient

19

Dropdown

Question image
This database has a ​
relationship between the Department and Staff tables.

20

Labelling

What is the primary key in the Pupil table?

Drag labels to their correct position on the image

pupilID

schoolID

forename

surname

21

media

Relational databases

What is the primary key in the School table?

22

Labelling

What is the primary key in the School table?

Drag labels to their correct position on the image

schoolName

schoolID

23

Multiple Choice

Question image

Which is the foreign key?

1

Pupil.pupilID

2

Pupil.schoolID

3

School.schoolID

24

Multiple Choice

Question image

What is the relationship between Pupil and School?

1

1:1

2

1:M

3

M:M

4

M:1

25

Fill in the Blanks

media image

Type answer...

26

Fill in the Blanks

media image

Type answer...

27

Fill in the Blanks

media image

Type answer...

28

Multiple Choice

Question image

What would be the effect of this query?


INSERT INTO Pupil (pupilID, forename, surname, schoolID)
VALUES ('S0006', 'Emma', 'Jones', 'P0018');

1

Insert Record

2

Amend Record

3

Delete Record

29

Multiple Choice

Question image

What would be the effect of this query?


UPDATE Pupil SET schoolID = 'P0018'
WHERE schoolID = 'P0011';

1

No records changed

2

1 record changed

3

4 records changed

4

All records changed

30

Multiple Choice

Question image

What would be the effect of this query?


DELETE FROM School
WHERE schoolID = 'P0011';

1

1 record deleted

2

4 records deleted

3

all records deleted

4

no records deleted

31

Fill in the Blanks

media image

Type answer...

32

Multiple Choice

Question image

How has this table been sorted?

1

schoolID Descending, surname Ascending

2

pupillid Descending, surname Ascending

3

surname Ascending, forename Ascending

media

National 5 Computing Science

Database Design & Development Revision

Show answer

Auto Play

Slide 1 / 32

SLIDE