INFS1000 Lec 5 Data ERD Modelling Flashcards

1
Q

What are the 4 steps in creating an ERD?

A
  1. Identify entities (business objects you need to store info about).
  2. Identify business rules (relationships).
  3. Define relationships and represent cardinality (some business objects are actually relationships / associative entities).
  4. Identify attributes (characteristics of entities).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 types of nouns that we discard?

A
  1. Nouns that can be calculated (e.g. revenue).
  2. Nouns that only have 1 instance (e.g. Amazon).
  3. Nouns that are really attributes / verbs (e.g. gender).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a UNARY relationship?

A

Relationship between 2 diff instances of the same entity.

e.g. employee supervises other employees.

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

What is a database application FORM used for?

A

Used to read, insert, modify, and delete data via a use-friendly interface.

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

What is a database application QUERY used for?

A
  • Means of getting answers from database data.

* Queries feeds into reports

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

What is a database application REPORT used for?

A
  • Shows data in structured format.
  • Computes values (e.g. median).
  • Used for analysing data (e.g. average age of customers).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why would you use an EXTENDED composite primary key? (M:M)

A

Extend the composite primary key (e.g. with time) to allow for multiple transactions between same subject and object (e.g. hotel guest + room) OVER TIME.

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

Why would you use a CLASSIFYING relationship? (1:M)

A

Use a TYPE relationship when an attribute isn’t unique to each entity instance, but to a class (type) of entities.

You can then assign certain attributes to the TYPE (e.g. Rate as an attribute of ROOM TYPE), and others to the object (e.g. floor for ROOM).

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