
N5 DDD - Databases (unfinished)
Presentation
•
Computers
•
8th Grade
•
Hard
G Alexander-Doyle
FREE Resource
9 Slides • 6 Questions
1
N5 Database Design & Development
By G Alexander-Doyle
2
Database Design & Development - Analysis
End user & Functional requirements
Before we begin to design a database we need to determine what the user and functional requirements are. These can be defined as follows:
End-user requirements - These are the tasks that the end user (the person(s) who will be using the database) would wish to perform.
Functional requirements - Functional requirements should relate to the tasks that the database system will perform, usually in the form of searching and sorting (queries). Functional requirements may also provide detail around the data that must be held in the database.
Database Design & Development - Analysis (end user & functional requirements)
3
Database Design & Development - Analysis
End user & Functional requirements
Falkirk libraries have a database to store details on their members and stock. Some examples of end user requirements would be as follows:
Members want to find out if a book is on the shelf by entering a title or author.
Members want to see a list of books written by a particular author.
Staff want to be able to add new book records to the database, remove old book records and make changes to existing book records.
Staff want to be able to look up member's phone numbers to let them know that a book they have ordered has arrived to the library.
Database Design & Development - Analysis (end user & functional requirements)
4
Database Design & Development - Analysis
End user & Functional requirements
Falkirk libraries have a database to store details on their members and stock. Some examples of functional requirements would be as follows:
Database Design & Development - Analysis (end user & functional requirements)
Members | Books |
|---|---|
Membership Number | Barcode Number |
Forename | Title |
Surname | Author |
Address | Price |
Phone Number | Publish Date |
Date of Birth | Membership Number |
A search query should return any book records matching a given title or author.
A list of books written by a particular author should be displayed in ascending order by title.
The database will be required to store the following information about library members and books.
5
Multiple Choice
A doctor's office are having a new database system installed to better keep track of patient and prescription records. The following statement is an example of what?
Reception staff need to be able to enrol patients.
Functional requirement
End-user requirement
6
Multiple Choice
A doctor's office are having a new database system installed to better keep track of patient and prescription records. The following statement is an example of what?
The database should store a patient ID, first name, surname, date of birth, address, contact number, next appointment time and next appointment date for each patient.
Functional requirement
End-user requirement
7
Multiple Choice
A doctor's office are having a new database system installed to better keep track of patient and prescription records. The following statement is an example of what?
Search for a patient using their surname.
Functional requirement
End-user requirement
8
Multiple Choice
A doctor's office are having a new database system installed to better keep track of patient and prescription records. The following statement is an example of what?
Medical staff must be able to update patient records.
Functional requirement
End-user requirement
9
Database Design & Development - Keys
Primary and Foreign keys
Primary key – A unique identifier for a record
Foreign key – A linking key (it is the primary key in one database table which is used in a second table). Foreign keys are identified with a *.
It is important when deciding on a primary key in a database what field might give a unique value. For example, a person's name is not unique as people can share the same name. This is true for many fields and a database developer may have to add an ID field to act as the primary key.
Database Design & Development - Design (keys)
10
Database Design & Development - Keys
Primary and Foreign keys
The Membership Number field appears in the Books table to indicate which member has checked the book out. This information comes from the Membership table so the Membership number is a foreign key in the Books table and the primary key in the Members table.
Database Design & Development - Design (keys)
11
Database Design & Development - E-R Diagrams
Entity-Relationship Diagrams
An entity-relationship diagram is designed to show the relationship between database entities (tables) along with their attributes (fields). Primary keys are identified by underlining them and foreign keys have an asterix (*).
Database Design & Development - Design (E-R Diagrams)
12
Database Design & Development - E-R Diagrams
Entity-Relationship Diagrams
The type of relation determines the referential integrity of a relational database. Relationships can be one - one or one - many. In this case it makes sense for the relationship between the Membership table and Books table to be one - many because members of the library can check out multiple books at a time. The nature of the relationship should also be described in an E-R diagram.
Database Design & Development - Design (E-R diagrams)
13
Database Design & Development - E-R Diagrams
Entity-Relationship Diagrams
Sometimes E-R diagrams are represented as shown in the image below however they still contain the same information.
Database Design & Development - Design (E-R diagrams)
14
Fill in the Blank
A head teacher and school have a One to _____ relationship?
15
Fill in the Blank
A pet owner and pets have a One to _____ relationship?
N5 Database Design & Development
By G Alexander-Doyle
Show answer
Auto Play
Slide 1 / 15
SLIDE
Similar Resources on Wayground
9 questions
Business app
Presentation
•
7th Grade
10 questions
READING EXERCISE
Presentation
•
8th Grade
11 questions
กฏหมายน่ารู้
Presentation
•
KG
10 questions
BJHS US HISTORY STAAR REVIEW 1
Presentation
•
8th Grade
11 questions
Software User Interfaces
Presentation
•
9th Grade
13 questions
8.L.5.1
Presentation
•
8th Grade
15 questions
Unit 5 The Early Republic- Landmark Supreme Court Cases
Presentation
•
8th Grade
13 questions
Social network
Presentation
•
9th Grade
Popular Resources on Wayground
10 questions
5.P.1.3 Distance/Time Graphs
Quiz
•
5th Grade
10 questions
Fire Drill
Quiz
•
2nd - 5th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
15 questions
Hargrett House Quiz: Community & Service
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
23 questions
Conflict Resolution
Presentation
•
6th - 8th Grade
25 questions
Early Republic 8th Grade US History
Quiz
•
8th Grade
10 questions
SMS Library Quiz
Quiz
•
6th - 8th Grade
15 questions
Pythagorean Theorem Word Problems Quizizz
Quiz
•
8th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
10 questions
Exploring Basic Probability Concepts
Interactive video
•
6th - 10th Grade
18 questions
Informative or Argumentative essay
Quiz
•
5th Grade - University