Introduction and normalization Flashcards

1
Q

An entity type represents more than one business concept. True or false?

A

False

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

Normalization reduces data redundancy. True or False

A

True

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

Normalization increases the risk of losing data integrity. True or false?

A

False

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

A many-to-many relationship can be resolved by using a linking table. True or false?

A

True

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

Is the following definition totally correct? “An entity type is in 2NF when all of its non-key attributes are fully dependent on its primary key”

A

False

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

About the 1NF (one or more can be selected):
a) each cell in the table can have only one value
b) each cell in the table can have only one value, except for numerical values
c) each cell in the table can have only one value, except for characters values
d) it is possible to have more than one value, as long as the values are separated by a semicolon
e) none of the above

A

a)

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

If an entity type is in 3NF, then (one or more can be selected):
a) all attributes are functionally dependent on the primary key
b) all attributes are transitively dependent on the primary key
c) all attributes are not transitively dependent on the primary key
d) complies with the 1NF, but not necessarily with the 2NF
e) none of the above

A

a) and c)

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

What is a database?

A

is a collection of related data items within a specific business process or problem setting.

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

What is a database management system?

A

is a software package used to define, create, use, and maintain a database.

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

What is a database system?

A

Is the combination of a database and a database management system.

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

What are the steps of a database design process?

A
  1. database requirements
  2. conceptual data model
  3. logical data model
  4. internal data model
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Describe the steps of a database design process.

A
  1. Database requirements: the aim is to understand the different steps and data needs of the process. Techniques: interviews, surveys, inspections of documents, etc.
  2. The information architect and the business user formalize the requirements in a conceptual data model. This is a high-level model, easy to understand for the business user and formal enough for the database designer who will use it in the next step.
  3. The logical data model is based upon the implementation environment. At this stage it is already known what type of DBMS (RDBMS, OODBMS) will be used, the product itself has not been decided yet (Microsoft, IBM, Oracle)
  4. The logical data model can be mapped to an internal data model by the database designer. In this step, the DBMS product is known. The database can then be populated with data and ready for use.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an entity type?

A

Is a business concept with an unambiguous meaning to a particular set of users. Is anything
that might deserve its own table in the database model.

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

What is an entity?

A

Is one particular occurrence or instance of an entity type.

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

What is an attribute type?

A

Represents a property of an entity type. Example: name, address are attribute types of the entity type supplier

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

What is an attribute?

A

Is an instance of an attribute type.

17
Q

What is a relationship?

A

Is an association between two or more entities.

18
Q

What is a relationship type?

A

Is a set of relationships among instances of one, two, or more entity types.

19
Q

What are the three types of cardinalities in relationships?

A
  • Many to many
  • One to one
  • One to many
20
Q

What is normalization?

A

Is a process of analyzing the given relations to ensure they do not contain any redundant data. Is a step-by-step procedure. Can be seen as filters: the more filters applied the better the database, but more complex the database structure.

21
Q

What is the goal of normalization?

A

Is to ensure that no anomalies can occur during data insertion, deletion, or update.

22
Q

What are the three normal forms?

A
  1. The 1NF states that every attribute type must be atomic and single-valued. Hence, no composite or multi-valued attribute types are tolerated.
  2. An entity type is in 2NF when it is in 1NF and when all of its non-key attributes are fully functionally dependent on its primary key.
  3. An entity type is in 3NF when it is in 2NF and no non-key attribute is transitively dependent on the primary key.
23
Q

What is the first normal form?

A

When it contains no repeating groups of data: each cell in the table can have only one value, never a list of values.

24
Q

Explain functional dependency.

A

There are two types of functional dependency: full and partial.

A full functional dependency (X -> Y) if the removal of any attribute type A from X means that the dependency does not hold anymore.

A partial functional dependency (X -> Y) is if an attribute type A from X can be removed from X and the dependency still holds.

25
Q

What is the second normal form?

A

When it is in 1st normal form and when all of its non-key attributes are functionally dependent on its primary key.

26
Q

Explain transitive dependency.

A

Functional dependency X -> Y in a relation R is a transitive dependency if there is a set of attribute types Z that is neither a candidate key nor a subset of any key of R, and both X -> Z and Z -> Y hold.

Examples of functional dependencies: in a table of orders, customer email depends on the customer name therefore is transitively on order_id.

27
Q

What is the third normal form?

A

When it is in 2nd normal form and no non-key attribute is transitively dependent on the primary key (they should be directly dependent on the primary key). In other words: non-prime attributes must be functionally dependent on the key(s), but they must not depend on another non-prime attribute.

28
Q

About the Entity type:

a) represents a property of Table
b) represents an instance of an attribute type
c) represents an association between two or more entities
d) none of the above

A

d)

29
Q

About normalization:

a) the goal is to ensure that no anomalies can occur during data insertion, deletion, or update
b) it is a step by step procedure
c) the more normal forms, the more complex your database structure.
d) all of the above

A

d)