Database-chap 5 Flashcards

ER Modelling

1
Q

ERM model

A

Forms the basis of an ERD diagram

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

Relational schema

A

A textual representation of database tables, where each is described by its name followed by a list of its attributes in parenthesis

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

Composite attributes

A

It can be subdivided to yield further attributes, composed of a single attribute

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

Derived attributes

A

Attribute whose value may be calculated(derived) from other attributes(computed attributes)

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

Algorithm

A

Is an effective method for solving a problem expressed as a finite sequence of instructions. Algorithms are used for
calculation, data processing and many other fields

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

Advantages of storing and not storing derived attributes

A

Stored: Saves CPU processing cycles
Data value is readily available
Can be used to keep track of historical data

Not stored: Saves storage space
Computation always yields current value

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

Disadvantages of storing and not storing derived attributes

A

Stored: Requires constant maintenance to ensure derived value is current, especially if any values used in the calculator change

Not stored: Uses CPU processing cycles
Adds coding complexity to queries

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

Relationship degree

A

Indicates no of entities or participants associated with a relationship

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

Recursive /Unary relationships

A

Exists when an association is maintained within a single entity
Relationship can exist between occurrences of the same entity set.
Naturally found within a unary relationship

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

Multiplicity

A

Refers to the number of instances of one entity that are associated with one instance of a related entity
Refers to both min and max number of instances

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

Participation

A

Determines whether all occurrences of an entity participate in the relationship or not
1-Mandatory
0-Optional to participate

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

Cardinality

A

Expresses the max number of entity occurrences associated with one occurrence of related entity

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

When is entity existence dependent?

A

If it can exist in the database only when it is associated with another related entity occurrence ,if it has a mandatory FK

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

A weak entity meets two conditions

A

Existence-dependent, it cannot exist w/o the entity with which it has a relationship
Has a PK that is partially /totally derived from parent entity in relationship

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

Weak entity

A

If FK is part of PK
Existence dependent
Strong relationship

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

Strong entity

A

If FK is not part part of the PK
Existence Independent
Weak relationship

17
Q

Iterative process

A

Based on repetition of processes and procedures

18
Q

Database design challenges(read further explanation)

A

-Database design must conform to design standards
-High processing speeds are often a top priority in database design
-Quest for timely information might be focus of database design

19
Q

Design standards

A

-Guide in developing logical structures that minimize data redundancies
-Minimize chance of anomalies occurring
-Avoiding nulls
-Govern the presentation of all components with the database design
-Needed to formulate a proper design process ,evaluate existing design and trace the widely local impact of changes in design

20
Q

Processing speeds

A

-Needed for large numbers of transactions
-Minimal access times through minimizing the number and complexity of logically desirable relationships

21
Q

Information requirements

A

Complex information requirements may dictate data transformations ,and they may expand the no. of entities and attributes within the design

22
Q

UML notation

A

-Top part is used to name the entity
-Middle part is used to name and describe the attributes
-The bottom part is used to list the methods(are usually used only when designing object-relational/OOD models)

23
Q

Why does ERM use identifiers?

A

To uniquely identify each entity instance (underlined in the ERD)

24
Q

Weak relationship

A

Also known as non-identifying relationship, exists if the PK of the related entity does not contain a PK component of the parent entity

25
Strong relationship
Also known as an identifying relationship, exists when the PK of the related entity contains a PK component of the parent entity
26
Optional vs Mandatory participation
O- means that one entity occurrence does not require a corresponding entity occurrence in a particular relationship M-means that one entity occurrence requires a corresponding entity occurrence in a particular relationship
27
Steps to building an ERD usually involves the following activities
Read