2 Database modelling Flashcards
Recap: Why the relational database?
Data is stored once and only once. Removes data anomalies
Non loss decomposition- All possible queries of data can be retrieved
List and explain the three phases of database design
- Conceptual- Study your organisation to understand how you can model your data.
- Logical- Model how data is stored in databases used by software applications. Ensure no information is lost
- Physical- How data is stored in databases tailored to specific DBMS system
Explain role of Data Administrator
Explain role of Database Administrator
Data administrator
- Create/maintain data models
- Planning requirments
- Develop procedures/polocies of data models
Database Adminstrator
- Managaement of physical system
- Monitoring performance
- Secuirity and integrity controls
CHEN + UML MODELLING
What is an entitie?
Draw both CHEN & UML versions
An important aspect of a system! Something we need to keep information
What is an attribute?
Information which makes up an entitie
At least one identifying attribute or combination of attributes for entitie occurence- UNIQUE
What does attribute domain mean?
The possible set of all values
Can share a domain- e.g
Hair colour: brown, black, blonde, white, grey
Entitiy occurence -Identifying keys
- Define a candidate key
- Primary key
- Composite key
- Natural key
- Surrogate key
Candidate key- Minimal set of attributes that uniquely identify each occurence of an entity type
Primary key- Candidate key that uniquely identyifs each occurence of an entity type
Composite key- Consists of two or more attributes
Natural key- Identifying key which is derived from the entitys existing attributes
Surrogte key- Artifical key introduced for efficiency. Usually an integer