2 Database modelling Flashcards

1
Q

Recap: Why the relational database?

A

Data is stored once and only once. Removes data anomalies

Non loss decomposition- All possible queries of data can be retrieved

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

List and explain the three phases of database design

A
  1. Conceptual- Study your organisation to understand how you can model your data.
  2. Logical- Model how data is stored in databases used by software applications. Ensure no information is lost
  3. Physical- How data is stored in databases tailored to specific DBMS system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain role of Data Administrator

Explain role of Database Administrator

A

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

CHEN + UML MODELLING

What is an entitie?

Draw both CHEN & UML versions

A

An important aspect of a system! Something we need to keep information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an attribute?

A

Information which makes up an entitie

At least one identifying attribute or combination of attributes for entitie occurence- UNIQUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does attribute domain mean?

A

The possible set of all values

Can share a domain- e.g

Hair colour: brown, black, blonde, white, grey

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Entitiy occurence -Identifying keys

  • Define a candidate key
  • Primary key
  • Composite key
  • Natural key
  • Surrogate key
A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly