CHP6 Flashcards
1
Q
Levels of data modelling:
A
- Conceptual (Communication and definition)
- Logical (Clarification and detail)
3, Physical (Technical implementation)
2
Q
Main components of an ERD (entity relational diagram)
A
- Attributes
- Entities
- Relationships
3
Q
Domains
A
- Attributes have domains and may share them
- For instance, gender has two possibilities male or female
- Students and professor may share the same address
4
Q
Identifiers
A
- They are underlined in the ERD
- Primary Key
- EG CAR(CAR_YEAR,CAR_COLOUR)
- The car is the primary key and inside the parameters are its attributes
5
Q
Composite and simple attributes
A
- Composite attributes can be subdivided
- For instance, Address can be subdivided into street, city, state
- Simple attributes cannot be subdivided for instance sex, age
6
Q
Composite key
A
- In certain circumstances, primary key can be used more than once
7
Q
Derived attributes
A
- Only exist if a value from an attribute is calculated from another attribute.
- Doesn’t have to be physically present inside the database
ADVTG: Saves storage space
DSADVTG: Requires constant maintenance to keep it up-to-date
8
Q
Strong and Weak entity
A
WEAK - is dependent on another entity and cannot exist otherwise
- has a primary key that is partially derived from a parent entity (PK & FK)
STRONG - is independent