5: Legacy Databases

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/136

encourage image

There's no tags or description

Looks like no tags are added yet.

137 Terms

1
New cards

Which two legacy database models are compared in this chapter?

The hierarchical model and the CODASYL network model.

2
New cards

What features do the hierarchical and CODASYL models share?

Record types, procedural DML, direct support for 1:N relationships, and workarounds or application logic for more complex requirements.

3
New cards

What is the main structural difference between hierarchical and CODASYL databases?

Hierarchical databases use a parent–child tree; CODASYL databases use an owner–member network.

4
New cards

What relationship ratio do both models directly support?

1:N.

5
New cards

What DML style do both legacy models use?

Procedural DML.

6
New cards

What is procedural DML?

A language style that specifies how to navigate to the desired data rather than only stating the desired result.

7
New cards

Why are applications closely tied to database structure in these legacy models?

They explicitly follow structural connections and access paths to locate records.

8
New cards

Do the chapter’s limitations necessarily describe every feature of every product based on these models?

No. They describe the models as presented in the slides.

9
New cards

What is a record type?

A definition describing a collection of similar records, such as PRODUCT.

10
New cards

What is a record occurrence?

One instance of a record type, such as Product 105, “Blue Pen.”

11
New cards

What is a field or data item?

A property within a record type, such as product number, name, or color.

12
New cards

How does a record type differ from a record occurrence?

The type defines a category of records; an occurrence is one actual record.

13
New cards

How many occurrences can a record type have?

Zero, one, or many.

14
New cards

What ER concept roughly corresponds to a record type?

An entity type.

15
New cards

What ER concept roughly corresponds to a record occurrence?

An entity.

16
New cards

Is PRODUCT a record type or a record occurrence?

A record type.

17
New cards

Is Product 105, “Blue Pen,” a record type or a record occurrence?

A record occurrence.

18
New cards

What historical project is associated with the origins of the hierarchical model in the slides?

NASA’s Apollo program.

19
New cards

Which IBM DBMS is associated with the hierarchical model?

IMS.

20
New cards

During which years do the slides place IBM’s development of IMS?

1966–1968.

21
New cards

What are the two building blocks of the hierarchical model?

Record types and relationship types.

22
New cards

What does a hierarchical relationship type connect?

Two record types in a parent–child relationship.

23
New cards

What structure does the hierarchical model use?

A tree structure.

24
New cards

What does a direct 1:N parent–child relationship permit?

One parent can have many children.

25
New cards

Can a hierarchical record type be a parent in multiple relationship types?

Yes. It can have different child record types.

26
New cards

In how many relationship types can a hierarchical record type participate as a child?

At most one.

27
New cards

Does “a child has at most one parent relationship” mean that a parent can have only one child?

No. A parent can have many children.

28
New cards

Can a hierarchical record type be both a child and a parent?

Yes. An intermediate type can be a child of one type and a parent of another.

29
New cards

What does nesting relationships mean in a hierarchy?

A child record type can itself be a parent further down the tree.

30
New cards

What is a root record type?

The record type at the top of a hierarchy.

31
New cards

What is a leaf record type?

A record type with no children.

32
New cards

In Department → Employee → Dependent, which record type is the root?

Department.

33
New cards

In Department → Employee → Dependent, which record type is the leaf?

Dependent.

34
New cards

In Department → Employee → Dependent, which type is both a parent and a child?

Employee.

35
New cards

How is data accessed in the hierarchical model described in this chapter?

By navigating downward from the root.

36
New cards

Who specifies the navigation path in hierarchical data access?

The application, using procedural DML.

37
New cards

What path would an application follow to reach a dependent in Department → Employee → Dependent?

Department, then Employee, then Dependent.

38
New cards

What is a key consequence of root-based procedural navigation?

Programs depend closely on the hierarchy’s structure and access paths.

39
New cards

Does the hierarchical model directly support M:N relationships?

No.

40
New cards

What are the two hierarchical workarounds for M:N relationships?

Duplicate child records beneath different parents, or use linked hierarchies with virtual child records and pointers.

41
New cards

How does the duplication workaround represent suppliers and products?

Choose Supplier as the parent and store Product child records beneath each supplier that supplies them.

42
New cards

If a product is supplied by three suppliers, how many full product copies are needed in the duplication representation?

Three copies, one under each supplier.

43
New cards

What is the main drawback of duplicating child records for M:N relationships?

Redundancy in the underlying entity data.

44
New cards

How can duplicated product records become inconsistent?

A product’s name or other details may be updated in some copies but not others.

45
New cards

Where can a supplier-specific price be stored in the hierarchical duplication approach?

In the product child record beneath that supplier.

46
New cards

Why is a supplier-specific price a relationship attribute?

It describes a particular supplier–product association rather than the supplier or product alone.

47
New cards

How do linked hierarchies represent an M:N relationship without duplicating entity data?

They connect separate hierarchies using virtual child record types, virtual parent–child relationships, and pointers.

48
New cards

What is the role of pointers in the linked-hierarchy workaround?

They support navigation between the separate hierarchical structures.

49
New cards

Where can relationship attributes be stored in the virtual-child approach?

In the virtual child record type.

50
New cards

What is the main benefit of virtual children and linked hierarchies?

They avoid repeated copies of the underlying entity data.

51
New cards

Does avoiding duplicated entity data eliminate the need to represent relationship information?

No. Each association and its relationship-specific facts still need to be represented.

52
New cards

Which hierarchical M:N workaround introduces redundant entity data?

Duplicating child records beneath different parents.

53
New cards

Which hierarchical M:N workaround avoids duplicating the underlying product data?

Linked hierarchies with virtual child records and pointers.

54
New cards

How are 1:1 relationships enforced in the hierarchical model described here?

Through application programs.

55
New cards

How are recursive relationships handled in the hierarchical model?

Using virtual child record types.

56
New cards

How are relationships involving more than two record types handled in the hierarchical model described here?

Using virtual child record types.

57
New cards

Can a child exist disconnected from its parent in the basic hierarchical structure?

No.

58
New cards

What is the existence dependency of a hierarchical child?

It depends on its parent and cannot remain unattached.

59
New cards

What does cascading deletion mean in the hierarchical model?

Deleting a parent also deletes its dependent children.

60
New cards

Which deletion behavior do the slides associate with hierarchical parent–child dependency?

ON DELETE CASCADE.

61
New cards

Does a hierarchical 1:N relationship automatically require every parent to have at least one child?

No. Supporting 1:N does not automatically enforce that minimum participation rule.

62
New cards

Does a Department–Employee 1:N structure guarantee exactly one manager per department?

No. That additional business rule is not guaranteed by the relationship ratio alone.

63
New cards

What organization developed the CODASYL model?

The Data Base Task Group of the Conference on Data System Languages.

64
New cards

In what year was the CODASYL model developed according to the slides?

1969.

65
New cards

What does CODASYL stand for?

Conference on Data System Languages.

66
New cards

What is an example of a CODASYL DBMS named in the slides?

CA-IDMS.

67
New cards

What are the two building blocks of the CODASYL model?

Record types and set types.

68
New cards

What is a CODASYL vector?

A multi-valued attribute.

69
New cards

What is an example of a CODASYL vector?

A list of email addresses.

70
New cards

What is a CODASYL repeated group?

A composite, multi-valued attribute.

71
New cards

What is an example of a CODASYL repeated group?

Several addresses, each containing street, city, and postal code.

72
New cards

How does a vector differ from a repeated group?

A vector contains multiple values; a repeated group contains multiple structured groups of values.

73
New cards

Which two attribute properties does a repeated group combine?

Composite and multi-valued.

74
New cards

How would a list of email addresses be classified in CODASYL?

As a vector.

75
New cards

How would multiple addresses with street, city, and postal code be classified in CODASYL?

As a repeated group.

76
New cards

What is a CODASYL set type?

A definition of a 1:N relationship between an owner record type and a member record type.

77
New cards

What are the two roles in a CODASYL set type?

Owner and member.

78
New cards

What is a CODASYL set occurrence?

One owner record together with its associated member records.

79
New cards

How many owner records does a set occurrence contain?

Exactly one.

80
New cards

How many member records can a set occurrence contain?

Zero, one, or many.

81
New cards

How does a set type differ from a set occurrence?

The set type defines an owner–member relationship; a set occurrence contains one actual owner and its associated members.

82
New cards

What is an example of a Department–Employee set occurrence?

One particular department record together with its associated employee records.

83
New cards

Can a CODASYL set occurrence have an owner but no members?

Yes. Zero members are allowed.

84
New cards

Can a CODASYL set occurrence contain multiple owners?

No. It contains exactly one owner.

85
New cards

Why is a CODASYL set not simply a mathematical set?

It distinguishes owner and member roles, includes both owner and members, and can order its members.

86
New cards

Can CODASYL member records be logically ordered?

Yes, for example alphabetically.

87
New cards

What feature makes CODASYL a network rather than a single-parent tree?

A record type can be a member in multiple set types.

88
New cards

Can multiple CODASYL set types connect the same record types?

Yes.

89
New cards

Can a CODASYL member record exist without an owner connection?

Yes, as described in this chapter.

90
New cards

How does child/member existence differ between the two legacy models?

A basic hierarchical child cannot be unattached; a CODASYL member record can exist without an owner connection.

91
New cards

An employee record has not yet been connected to a department. Which model explicitly permits this unattached member?

CODASYL.

92
New cards

How could Employee participate in multiple CODASYL set types?

It could be a member in both a Department–Employee set type and a Project–Employee set type.

93
New cards

Does membership in multiple set types imply unlimited membership in multiple occurrences of the same set type?

No. These are different concepts and should not be confused.

94
New cards

Does CODASYL directly support native M:N set types?

No. Its set types directly represent 1:N relationships.

95
New cards

How is an M:N relationship represented in CODASYL?

Introduce a dummy record type that is a member in two set types, with the original record types as owners.

96
New cards

What does a dummy record represent in a CODASYL M:N design?

A particular association between records of the original types.

97
New cards

Which conceptual-model construct is similar to a CODASYL dummy record used for M:N?

An associative entity.

98
New cards

How can CODASYL represent suppliers supplying products?

Use Supply as a dummy record type: Supplier owns Supply, and Product owns Supply.

99
New cards

In a CODASYL Supplier–Supply set type, which type is the owner and which is the member?

Supplier is the owner; Supply is the member.

100
New cards

In a CODASYL Product–Supply set type, which type is the owner and which is the member?

Product is the owner; Supply is the member.