L06 Data Management
L06 Data Management
L06 Data Management
Trimester 2 – 2019
Data Management
Lecture 4 – based on Chapter 3 – sections 3.1-3.2
Class outline
https://www.theguardian.com/
commentisfree/2018/mar/28/all-the-data-
facebook-google-has-on-you-privacy
All that data Loyalty NZ Analytics
INFO101 T1 2019
3.1 Managing data
• High quality data are:
o Accurate
o Complete
o Timely
o Consistent
o Accessible
o Relevant
o Concise
Figure 3.1
The data hierarchy
• Digital data are organised in a hierarchy from the
smallest to the largest
• Example: hierarchy of data for a computer-based
file
Designing the database
https://www.youtube.com/watch?v=NvrpuBAMddw
Designing the database cont.
Order Parts
INFO101 T1 2019
In this example a book [entity] has a publisher.
INFO101 T1 2019
Database key values
The primary key in one table is donated to another table as the foreign
key, linking the record in one table to its related record in another
(that’s the relational bit).
Foreign Key
Primary Key
Primary key?
ER diagram
Figure 3.3
Figure 3.4
Review Learning objectives