Concepts of Database Design Exam 2

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/88

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

89 Terms

1
New cards

The order of the rows and columns is important to the DBMS.

False

2
New cards

A(n) _ index is an index in which the index key can have only one pointer value (row) associated with it.

unique

3
New cards

A(n) table is the implementation of a composite entity used to implement an M:N relationship.

linking

4
New cards

Consider a bookstore table with COD, TITLE, CATEGORY, PAGES, PRICE. Which is a more sensitive selection index?

TITLE, CATEGORY

5
New cards

Only a single attribute, not multiple attributes, can define functional dependence.

False

6
New cards

A data dictionary is sometimes described as .

"the database designer's database"

7
New cards

The operator subtracts one table from the other.

DIFFERENCE

8
New cards

A _ contains all of the attribute names and characteristics for each table in the system.

data dictionary

9
New cards

In a car wash business table with services, which attribute should be a foreign key?

CLIENT_ID

10
New cards

A video game store table with users - best data type for being an adult?

Logical

11
New cards

Character data, also known as ___ data, can contain any character or symbol not intended for mathematical manipulation.

string

12
New cards

In a school, what relationship exists between TEACHER and CLASS when each class has one teacher and a teacher can only be class teacher of one class?

1:1

13
New cards

_, also known as RESTRICT, yields values for all rows found in a table that satisfy a given condition.

SELECT

14
New cards

In database context, using the same attribute name to label different attributes indicates a .

homonym

15
New cards

By using the relational data model the designer focuses primarily on the physical storage details.

False

16
New cards

If one shop manager can only be in charge of a single shop, what kind of relationship do the entities shop manager and shop have?

1:1

17
New cards

How many rows and columns does the product of table1 and table2 have?

6 rows, 5 columns

18
New cards

On a student table, what data type is more appropriate for the gpa attribute?

Numeric

19
New cards

Which option is more adequate for a primary key in a table of employees?

employee social security number

20
New cards

What could be an unintended effect of deleting an entry in a vendor table referenced by a products table?

It damages the referential integrity.

21
New cards

The _operator uses one single-column table and one two-column table.

DIVIDE

22
New cards

When you define a table's primary key, the DBMS automatically creates a(n) _ index on the primary key columns you declared.

unique

23
New cards

A primary key can't be null, but it can contain null attributes.

False

24
New cards

In a table of clients of a store, the best description of the attribute domain for how much a client has spent is

[0, ∞)

25
New cards

An index key can have multiple _ (a composite index).

attributes

26
New cards

M:N relationship can be changed into two 1:M relationships using a __.

composite entity

27
New cards

What kind of relationship is "representative sold car" in a car dealership?

1:N

28
New cards

In a large university student table, the name attribute could be used as a _.

secondary key

29
New cards

What kind of relationship exists between university COURSE and STUDENT tables?

M:N

30
New cards

_, also known as RESTRICT, yields values for all rows found in a table that satisfy a given condition.

SELECT

31
New cards

What is the function of pointers in an index?

Shows the location of the occurrences of a particular index value.

32
New cards

Why is a foreign key not considered data redundancy?

The elimination of the foreign key would result in losing the information of the relation.

33
New cards

_ returns only the attributes requested, in the order in which they are requested.

PROJECT

34
New cards

Relations are a construct, thus it's easier for users to think in terms of tables.

mathematical

35
New cards

The _ relationship is the "relational model ideal."

1:M

36
New cards

Entity integrity is the condition in which each row in the table has its own unique identity with requirements: all values in the primary key must be unique and no key attribute in the primary key can contain a null.

37
New cards

If the attribute (B) is functionally dependent on a composite key (A) but not on any subset of that composite key, the attribute (B) is fully functionally dependent on (A).

True

38
New cards

What is the result of π price (table)?

price: 19, 8, 22

39
New cards

A(n) _ is an orderly arrangement used to logically access rows in a table.

index

40
New cards

The row's range of permissible values is known as its domain.

False

41
New cards

Which pair of attributes could be a primary key for a table with unique combinations of attribute 1 and attribute 2?

attribute 1, attribute 2

42
New cards

INTERSECT yields only the rows that appear in both tables with identical values.

43
New cards

An index is an ordered arrangement of keys and pointers used to logically access rows in a table, with each key pointing to data locations. Indexes help retrieve data efficiently, order data by attributes, and implement primary keys.

44
New cards

The _ is actually a system-created database whose tables store the user/designer-created database characteristics and contents.

system catalog

45
New cards

Which attribute could be a primary key in a table where attribute 3 has unique values for each row?

attribute 3

46
New cards

A table is a three-dimensional structure composed of depth, width, and height.

False

47
New cards

The idea of determination is unique to the database environment.

False

48
New cards

To avoid potential confusion with attribute names when creating a new table, which strategy is best?

Query the data dictionary to get the necessary information.

49
New cards

Which relational operation gives names from table1 with at least one entry in table2 with total > 100?

π name (table1 ⋈ σ total>100 (table2))

50
New cards

Which key would cause BCNF violation if used more than once?

candidate

51
New cards

A dependency diagram shows relationships among attributes with primary key attributes highlighted and arrows indicating desirable dependencies (based on primary key) above attributes and less desirable dependencies (partial and transitive) below.

52
New cards

In order to meet performance requirements, portions of the database design may need to be occasionally denormalized.

True

53
New cards

In a(n) _ diagram, the arrows above the attributes indicate all desirable dependencies.

dependency

54
New cards

All relational tables satisfy 1NF requirements.

True

55
New cards

Boyce-Codd normal form (BCNF) requires every determinant in the table to be a candidate key. BCNF is equivalent to 3NF when there is only one candidate key and is considered a special case of 3NF.

56
New cards

When designing data structure, attribute names should use descriptive suffixes.

use descriptive suffixes

57
New cards

Repeating groups must be eliminated by ensuring that each row defines a single entity.

True

58
New cards

The objective of normalization is to ensure that each table conforms to the concept of well-formed relations.

True

59
New cards

An atomic attribute cannot be further subdivided.

cannot be further subdivided

60
New cards

When the related table uses a composite primary key, it becomes difficult to create which key?

foreign

61
New cards

A relational table must not contain a(n) _.

repeating group

62
New cards

A transitive dependency exists when Y is functionally dependent on X, Z is functionally dependent on Y, and X is the primary key.

transitive dependency

63
New cards

Which trait should be balanced with design integrity?

flexibility

64
New cards

A table in 1NF has all key attributes defined, no repeating groups, and all attributes dependent on the primary key.

1NF

65
New cards

Normalization works through a series of stages called normal forms, with _ stages being sufficient for most business database design.

three

66
New cards

What is the minimum preferred normal form all entities should be in when designing a new database?

3NF

67
New cards

Well-formed relations have characteristics: each table represents a single subject, data is not unnecessarily stored in multiple tables (reducing redundancy), all non-prime attributes depend only on the primary key, and tables are free of data anomalies.

68
New cards

Which table type defines a table in 2NF that contains no transitive dependencies?

3NF

69
New cards

How does an unnormalized data structure with entities having relations with many instances affect data management?

Multiple rows need to be updated.

70
New cards

Denormalization produces a lower normal form.

True

71
New cards

When a table contains only one candidate key, which normal forms are equivalent?

the 3NF and the BCNF

72
New cards

In order to yield a useful ERD, you must combine ER modeling with which entity?

normalization

73
New cards

Normalization works through a series of stages called normal forms.

True

74
New cards

If a table is in 3NF and is also in Boyce-Codd normal form, what functional dependencies are determinants?

candidate keys

75
New cards

Which dependency illustrates how one key determines multiple values of two other independent attributes?

multivalued dependency

76
New cards

Which attribute values can be calculated when needed for reports or invoices?

derived

77
New cards

Granularity refers to _.

the level of detail represented by the values in a table's row

78
New cards

According to the data-modeling checklist, what process ensures an ER model minimizes redundancy for single-place updates?

normalization

79
New cards

A dependency based on only part of a composite primary key is called .

partial

80
New cards

From a structural point of view, 2NF is better than _.

1NF

81
New cards

What unwanted element does normalization reduce?

data redundancies

82
New cards

An attribute that cannot be further subdivided displays which quality?

atomicity

83
New cards

What type of data is stored at the lowest level of granularity?

atomic

84
New cards

Attribute A _ attribute B if all rows that agree in value for A also agree in value for B.

determines

85
New cards

Which term represents a micro view of the entities within the ERD?

Normalization

86
New cards

A table where all attributes depend on the primary key but are independent of each other, with no row containing multiple multivalued facts about an entity is in _.

4NF

87
New cards

Which normal form contains no rows with two or more multivalued facts about an entity?

4NF

88
New cards

Raw data in its original state with anomalies such as redundant or multivalued data is _ data.

unnormalized

89
New cards

According to the data-modeling checklist, _ should be nouns familiar to business, short and meaningful.

entity names