Lecture 6 Flashcards
Data
Raw facts and figures without any deeper meaning
Information
Data shaped into meaningful form through context
Knowledge
Results from experience and education
What does a relational database do?
It organises data into one or more related tables
What does a unique key do?
It identifies each row, and can be used to link different tables.
Data redundancy
unnecessary repetiiton
Why should redundancy be reduced? (2)
- it increases the amount of storage required
2. It is a major source of data inconsistencies
What is one benefit of redundancy?
It can improve database performance since there is not needs for joint operations
What does database normalization do?
It manages the tradeoff between redundancy and performance (ease of use)
Requirements for 1NF?
- The domain of each attribute contains only atomic values
2. The values of each attribute contain only one value from that domain
Requirement for 2NF?
- Must satisfy 1NF
- In the case of a composite key, there are no partial dependencies. ie. non-key attributes are dependent on all key attributes and not just a subset
Requirement for 3NF?
- Must satisfy 2NF
- There should be no transitive dependencies. Attributes should not be functionally dependent on other non-key attributes.
What is Entity relationship modelling (ERM)?
describes the relationship between entities (things of interest)
Entity relationship diagrams are built on what four elemental concepts?
- Entities
- Attributes
- Relationships
- Cardinalities
What are entities?
They are things of interest to an organisation