CS 3410 - Intro to Database Systems

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

1/615

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.

616 Terms

1
New cards

The first step in the database design process is to create tables and columns from entities and attributes.

True

2
New cards

When creating a relational database design from E-R diagrams, first create a relation for each relationship.

False

3
New cards

Each entity in the extended E-R model is represented as a table in the relational database design.

True

4
New cards

An entity needs to be examined according to normalization criteria before creating a table from it in the relational database design.

False

5
New cards

When creating a table in the relational database design from an entity in the extended E-R model, the attributes of the entity become the rows of the table.

False

6
New cards

By default, the identifier of the entity becomes the foreign key of the corresponding table.

False

7
New cards

The ideal primary key is short, numeric, and fixed.

True

8
New cards

A surrogate key is appropriate when the primary key of a table contains a lengthy text field.

True

9
New cards

One of the important properties of an attribute is whether or not it is required.

True

10
New cards

A surrogate key is a unique, system-supplied identifier used as the primary key of a table.

True

11
New cards

The values of a surrogate key have no meaning to the users.

True

12
New cards

A surrogate key should be considered when the key contains a lengthy text field.

True

13
New cards

Whether or not an attribute is required is determined during the database modeling phase.

False

14
New cards

A null value is an attribute value that has been set to zero.

False

15
New cards

Data types are consistent across all DBMS products.

False

16
New cards

A default value is the value the user enters into the row the first time the user enters data.

False

17
New cards

A data constraint is a limitation on data values.

True

18
New cards

The last step in creating a table is to verify table normalization.

True

19
New cards

One of the important properties of a column is whether or not it can have a NULL value.

True

20
New cards

A foreign key is a key that does not belong in any table.

False

21
New cards

In a relational database design, all relationships are expressed by creating a foreign key.

True

22
New cards

When the key of one table is placed into a second table to represent a relationship, the key is called a relational key in the second table.

False

23
New cards

To represent a 1:1 binary relationship in a relational database design, the key of one table is placed into the second table.

True

24
New cards

When placing a foreign key for a 1:1 relationship, the key of either table can be used as the foreign key in the other table.

True

25
New cards

In a 1:1 relationship, the foreign key is defined as an alternate key to make the DBMS enforce uniqueness.

True

26
New cards

In a 1:N relationship, the term parent refers to the table on the 'many' side of the relationship.

False

27
New cards

In a 1:N relationship, the table on the 'one' side is called the parent.

True

28
New cards

In representing a 1:N relationship in a relational database design, the key of the table representing the parent entity is placed as a foreign key in the table representing the child entity.

True

29
New cards

In representing a 1:N relationship in a relational database design, the key of the table representing the entity of the 'many' side is placed as foreign key in the table representing the entity on the 'one' side of the relationship.

False

30
New cards

To represent a 1:N relationship in a relational database design, an intersection table is created.

False

31
New cards

In 1:N relationships, the table on the 'many' side is called the child.

True

32
New cards

To represent a one-to-many relationship in a relational database design, the key of the child table is placed as a foreign key into the other table.

False

33
New cards

To represent an N:M relationship in a relational database design, a table is created to represent the relationship itself.

True

34
New cards

To represent an N:M relationship in a relational database design, an intersection table is created.

True

35
New cards

To represent an N:M relationship in a relational database design, in essence it is reduced to two 1:N relationships.

True

36
New cards

A key of an intersection table is always the keys of both parents.

True

37
New cards

In a many-to-many relationship in a relational database design, the primary keys of both tables are joined into a composite primary key in the intersection table.

True

38
New cards

An intersection table is always ID-dependent on both of its parent tables.

True

39
New cards

An intersection table can have additional attributes besides the keys of its parent tables.

False

40
New cards

Like all ID-dependent relationships, the parents of an association table are required.

True

41
New cards

An association table sometimes connects more than two entities.

True

42
New cards

An ID-dependent table can be used to represent multivalued attributes.

True

43
New cards

All identifying relationships are 1:N.

True

44
New cards

When creating a table for an ID-dependent entity, both the key of the parent and the key of the entity itself must appear in the table.

True

45
New cards

The design transformation for all IS-A relationships can be summarized by the phrase "place the key of the parent table in the child table."

False

46
New cards

When transforming an ID-dependent E-R data model relationship into a relational database design where the child entity is designed to use a surrogate key, the relationship changes to a weak but not ID-dependent relationship.

True

47
New cards

When transforming supertype/subtype entities into a relational database design, an entity is created for the supertype only.

False

48
New cards

When transforming supertype/subtype entities into a relational database design, the key of the supertype table is placed into the subtype table typically as the key.

True

49
New cards

To represent an IS-A relationship in a relational database design, the IS-A relationship must be converted into a HAS-A relationship.

False

50
New cards

Discriminator attributes can be represented in relational designs.

False

51
New cards

When transforming supertype/subtype entities into a relational database design, all of the attributes for the supertype table are placed into the subtype relations.

False

52
New cards

When transforming an extended E-R model into a relational database design, recursive relationships are treated fundamentally the same as other HAS-A relationships.

True

53
New cards

Recursive M:N relationships are represented with an intersection table that shows pairs of related rows from a single table.

True

54
New cards

Referential integrity constraints should disallow adding a new row to a child table when the foreign key does not match a primary key value in the parent table.

True

55
New cards

A referential integrity constraint policy that insures that foreign key values in a table are correctly maintained when there is a change to the primary key value in the parent table is called cascading insertions.

False

56
New cards

A referential integrity constraint policy that insures that all rows containing a particular foreign key value in a table are eliminated from the table when the row containing the corresponding primary key value in a parent table is eliminated from the database is called cascading deletes.

True

57
New cards

When the parent entity is required (M) in a relationship, every row of the child table must have a valid, non-null value of the foreign key.

True

58
New cards

Cascading deletions are generally not used with relationships between strong entities.

True

59
New cards

Cascading deletions are generally not used with relationships for weak child entities.

False

60
New cards

If the parent is required, then a new child row must be created with a valid foreign key value.

True

61
New cards

When the parent entity has a surrogate key, the enforcement actions are the same for both parent and child.

False

62
New cards

When the child entity is required (M) in a relationship, there needs to be at least one child row for each parent row at all times.

True

63
New cards

It is easy to enforce the referential integrity actions for M-M relationships.

False

64
New cards

Which of the following is not a step in the database design process?

65
New cards
66
New cards

A) Create tables and columns from entities and attributes

67
New cards

B) Select primary keys

68
New cards

C) Represent relationships

69
New cards

D) Create constraints and triggers

D) Create constraints and triggers

70
New cards

The first step in transforming an extended E-R model into a relational database design is to .

71
New cards
72
New cards

A) create a table for each relationship

73
New cards

B) evaluate the entities against the normalization criteria

74
New cards

C) create a table for each entity

75
New cards

D) remove any recursive relationships

C) create a table for each entity

76
New cards

Each attribute of an entity becomes a(n) of a table.

77
New cards
78
New cards

A) column

79
New cards

B) primary key

80
New cards

C) foreign key

81
New cards

D) alternate key

A) column

82
New cards

The identifier of the entity becomes the of the corresponding table.

83
New cards
84
New cards

A) primary key

85
New cards

B) foreign key

86
New cards

C) supertype

87
New cards

D) subtype

A) primary key

88
New cards

Which of the following is not true for an ideal primary key?

89
New cards
90
New cards

A) a composite of several long attributes

91
New cards

B) numeric

92
New cards

C) fixed

93
New cards

D) short

A) a composite of several long attributes

94
New cards

A surrogate key should be considered when .

95
New cards
96
New cards

A) A relationship is N:M

97
New cards

B) A composite key is required

98
New cards

C) The key contains a lengthy text field

99
New cards

D) The key contains a number

C) The key contains a lengthy text field

100
New cards

Which of the following is not true about surrogate keys?