Lesson 4 Database Design Flashcards

1
Q

binary relationship

A

An ER term for an association (relationship) between two entities.

For example, PROFESSOR teaches CLASS.

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

cardinality

A
  • A property that assigns a specific value to connectivity
  • expresses the range of allowed entity occurrences associated with a single occurrence of the related entity.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

composite attribute

For example, a phone number such as 615-898-2368 may be divided into an area code (615), an exchange number (898), and a four-digit code (2368).

A

An attribute that can be further subdivided to yield additional attributes.

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

composite identifier

also known as a composite key

A

In ER modeling, a key composed of more than one attribute.

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

derived attribute

A
  1. An attribute that does not physically exist within the entity and is derived via an algorithm.
  2. For example, the YEARS_EMPLOYED attribute might be derived by subtracting the start date from the current date.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

existence-dependent

A
  1. A property of an entity whose existence depends on one or more other entities.
  2. In such an environment, the existence-independent table must be created and loaded first, because the existence-dependent key cannot reference a table that does not yet exist.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

existence-independent

A
  • A property of an entity that can exist apart from one or more related entities.
  • Such a table must be created first when referencing an existence-dependent table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

identifiers

A

One or more attributes (columns) that uniquely identify each entity instance.

also known as keys

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

iterative process

A

A process based on repetition of steps and procedures.

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

mandatory participation

A

A relationship in which one entity occurrence must have a corresponding occurrence in another entity.

  1. For example, an EMPLOYEE works in a DIVISION.
  2. A person cannot be an employee without being assigned to a company’s division.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

multivalued attributes

A

An attribute that can have many values for a single entity occurrence.

  1. For example, an EMP_DEGREE attribute might store the string "BBA, MBA, PHD" to indicate three different degrees held.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

non-identifying relationship

A

A relationship in which the the child table’s primary key is independent of the parent table’s primary key.

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

optional attribute

A

In ER modeling, an attribute that does not require a value; therefore, it can be left empty.

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

optional participation

A

In ER modeling, a condition in which one entity occurrence does not require a corresponding entity occurrence in a particular relationship.

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

participants

A
  • An ER term for entities that participate in a relationship.

  • For example, in the relationship “PROFESSOR teaches CLASS,” the teaches relationship is based on the participants PROFESSOR and CLASS.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

recursive relationship

A

A relationship found within a single entity type.

  1. For example, an EMPLOYEE is married to an EMPLOYEE or
  2. A PART is a component of another PART.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

relational schema

A

The organization of a relational database as described by the database administrator.

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

relationship degree

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

required attribute

A

In ER modeling, an attribute that must have a value.

In other words, it cannot be left empty.

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

simple attribute

A

An attribute that cannot be subdivided into meaningful components.

Compared to composite attribute.

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

single-valued attribute

A

An attribute that can have only one value.

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

strong (identifying) relationship

A
  1. This relationship exists whenever the primary key of the related entity contains the primary key components of the parent entity.
  2. A relationship that occurs when two entities are existence-dependent.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

strong entity

A
  • An entity that is existence-independent.
  • It can exist apart from all of its related entities.

Also called a regular entity.

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

ternary relationship

A
  • An ER term used to describe an association (relationship) between three entities.
  • For example, a DOCTOR prescribes a DRUG for a PATIENT.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

unary relationship

A
  • An ER term used to describe an association within an entity.
  • For example, an EMPLOYEE might manage another EMPLOYEE.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

weak entity

A
  • An entity that displays existence dependence and inherits the primary key of its parent entity.
  • For example, a DEPENDENT requires the existence of an EMPLOYEE.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

weak relationship

A
  • A relationship in which the primary key of the related entity does not contain a primary key component of the parent entity.
  • A weak relationship links two strong entities that can exist independently.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Is the entity relationship model (ERM); dependent on the database type?

A

No, the ERM is not dependent on the database type; it serves as a conceptual framework for organizing data regardless of the specific database implementation

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

Why is The Crow’s Foot notation more implemented than the Chen notation.

A
  1. CF Notation symbols directly translate to database concepts like relationships (one-to-many, etc.)
  2. Offers simplicity visualization of data structures.
  3. This makes it easier to map diagrams to database tables compared to the more abstract Chen notation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

An entity in the entity relationship model corresponds with $ ?

A

Entities in ER models corresponds to a table in the relational environment.

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

What does a table row represent in the entity relationship model?

A

A table row represents a single entity instance, containing all attributes for that specific occurrence of the entity.

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

In the Chen and Crow’s Foot notations, an entity is represented with ?

A

Entity: a rectangle containing the entity’s name

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

In the original Chen notation how are attributes & attribute names represented?

A
  • Each attribute is represented by an oval
  • The attribute name connected to an entity rectangle with a line.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

Why do Software vendors oppose the Chen representation?

A
  • Software vendors may not favor Chen notation because it can be visually complex and use many symbols, potentially making it harder to use and less appealing to a wider audience.
  • This complexity can lead to larger diagrams and a steeper learning curve
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

What characterizes a composite identifier in database design?

A

A composite identifier is a primary key that consists of more than one attribute used to uniquely identify an entity instance.

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

Why is Crow’s Foot notation useless for multi variable attributes?

A
  1. CF notation focuses on relationships between entities.
  2. It uses symbols to represent cardinality and optionality (mandatory or optional) in relationships.
  3. Multi valued attributes are about a single entity.

cardinality (one-to-one, one-to-many, etc.)

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

How does Composite attributes make it easier to facilitate detailed queries?

A
  1. They group related information together.
  2. Instead of searching through separate fields for each part of an address,you can use the composite “address” attribute to find exactly what you need with a single query.
  3. This makes queries more efficient and easier to formulate.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Do relationships between entities operate in only one direction?

A

No, relationships between entities can operate in both directions, allowing for interactions that can be navigated from either entity involved.

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

What establishes connectivities and cardinalities in database relationships?

A

Connectivities and cardinalities are established by concise statements known as business rules that define how entities relate to each other.

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

Is there any way to represent cardinality in Chen notation?

A

Chen notation includes methods to represent cardinality through specific symbols that indicate relationships between entities.

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

What does it mean for an entity to have a mandatory primary key in implementation terms?

A
  1. A mandatory primary key means that every record in a database table must have a unique identifier.
  2. This ensures that each entry can be easily distinguished from others, preventing confusion and duplication.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

Under what conditions does a weak relationship exist in database design?

A

A weak relationship exists if the primary key of the related entity does not contain any primary key components of the parent entity.

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

In a 1:M relationship, what must be done to avoid referential integrity errors?

A

To avoid referential integrity errors in a 1:M relationship, the data of the “1” side must be loaded first, ensuring that reference entities are in place.

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

Are unary relationships common in manufacturing industries?

A

Yes, unary relationships, where an entity relates to itself, are common in manufacturing industries and can represent scenarios such as employee management hierarchies.

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

Define both participation & referential integrity; are they bidirectional in a relationship?

A
  1. Participation relates to whether an entity requires a relationship with another & does not necessarily imply a bidirectional requirement
  2. Referential integrity ensures that such references are valid and also do not necessarily imply a bidirectional requirement.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

When does a weak relationship, also known as a non-identifying relationship, exist?

A

A weak relationship exists if the primary key of the related entity does not incorporate any primary key components from the parent entity, indicating a lack of identity dependency.

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

What does the existence of a mandatory relationship suggest about minimum cardinality?

A

A mandatory relationship indicates:

That its minimum cardinality must be at least 1 for the mandatory entity, not 0

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

Why must a database designer understand the “1” and “M” sides of each relationship when implementing a small database?

A

Understanding the “1” and “M” sides is crucial for proper relational design, as it determines how entities reference each other and ensures integrity within the database.

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

The _____ notation of entity-relationship modelling can be used for both conceptual and implementation modelling.

A

UML

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

The entity relationship diagram (ERD) represents the _____ database as viewed by the end user.

A

conceptual

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

A(n) _____ is the set of possible values for a given attribute.

A

domain

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

Ideally, an entity identifier is composed of _____ attribute(s)

A

one

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

A _____ attribute can be further subdivided to yield additional attributes.

A

composite

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

A _____ attribute is one that cannot be subdivided.

A

simple

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

The conceptual model can handle _____ relationships and multivalued attributes.

A

M:N

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

A derived attribute is indicated in the Chen notation by a _____ that connects the attribute and an entity.

A

dashed line

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

The __________ attribute need not be physically stored within the database.

A

derived

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

A relationship is an association between _____.

A

Entities

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

What does cardinality express?

A

Cardinality expresses the minimum and maximum number of entity occurrences associated with one occurrence of the related entity.

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

When the specific cardinalities are not included on the diagram in Crow’s Foot notation, cardinality is implied by the use of _____.

A

symbols

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

Knowing the minimum and maximum number of _____ occurrences is very helpful at the application software level.

A

entity

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

An entity is said to be _____ -dependent if it can exist in the database only when it is associated with another related entity occurrence.

A

existance

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

If an entity can exist apart from all of its related entities, then it is existence-independent, and it is referred to as a(n) _____ entity.

A

strong

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

A weak entity does not have $ attributes to form a $.

A
  1. sufficient
  2. Primary key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

The existence of a(n) _____ entity indicates that its minimum cardinality is zero.

A

optional

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

The Crow’s foot symbol with two vertical parallel lines indicates _____ cardinality.

A

(1:1)

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

A _____ relationship exists when an association is maintained within a single entity.

A

unary

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

A _____ relationship exists when three entities are associated

A

ternary

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

If an employee within an EMPLOYEE entity has a relationship with itself, that relationship is known as a _____ relationship.

A

recursive

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

To simplify the conceptual design, most higher-order relationships are decomposed into appropriate equivalent _____ relationships whenever possible.

A

binary

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

The entity relationship model uses the associative entity to represent a(n) _____ relationship between two or more entities.

A

M:N

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

When using the Crow’s Foot notation, the associative entity is indicated by _____ relationship lines between the parents and the associative entity.

A

solid

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

______ are charcteristics of entities

A

Attribute

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

A _____ attribute is an attribute that must have a value

A

required

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

______ are underlined in an ER diagram

A

Identifiers

76
Q

A person’s Social Security number would be an example of a ______ ______ attribute.

A

Single valued

77
Q

A ______ attribute need not be physically stored within the database.

78
Q

A _____ attribute is an attribute that can be further subdivided to yield additional attributes.

79
Q

When indicating cardinality, the first value represents the _____ number of associated entities.

80
Q

The concept of relationship strength is based on how the ______ ______ of a related entity is defined.

A

primary key

81
Q

A ______ relationship is also known as an identifying relationship.

A

strong

• A strong relationship links a strong entity to a weak entity (the weak entity depends on the strong one).

82
Q

The Crow’s Foot notation depicts the strong relationship with a(n) _____ line between the entities.

83
Q

A weak entity must be ______ dependent.

84
Q

The Chen notation identifies a weak entity by using a double-walled entity ________.

85
Q

Participation is _______ ; if one entity occurrence does not require a corresponding entity occurrence in a particular relationship.

86
Q

In Crow’s Foot notation, an optional relationship between entities is shown by drawing a small _____ _____ on the side of the optional entity.

A

small circle/circle (o)

87
Q

________ expresses the minimum and maximum number of entity occurrences associated with one occurrence of the related entity.

A

Cardinality

88
Q

A relationship _______ indicates the number of entities or participants associated with a relationship.

A

degree/cardinality

89
Q

Is the process of database design considered sequential?

A

No, the process of database design is often iterative, involving repetitions and revisions rather than a strictly linear sequence of steps.

90
Q

The first step in building an entity-relationship diagram (ERD) is _____ .

A

Analysis: creating a detailed narrative of the organization’s description of operations.

91
Q
  1. If Tiny College has some departments that are classified as “research only” and do not offer courses.
  2. The COURSE entity of the college database would be _____ to; the DEPARTMENT entity.

Entity does mean table

92
Q

An ______ process is based on repetition of processes and procedures.

93
Q

Identifying the attributes of entities helps in the better understanding of ______ among entities.

A

relationships

94
Q

In organizations that generate large number of transactions, _____ are often a top priority in database design.

A

high processing speeds

95
Q

Complex information requirements may $ ?

A
  1. Dictate data transformations OR
  2. Expand the number of entities and attributes within the designs
96
Q

________ not only helps database designers to stay on track during the design process, it also enables them to pick up the design thread when the time comes to modify the design.

A

Documentation

97
Q

What is an entity type in entity-relationship modeling?

A

A set of unique individuals

Example: The entity type ‘Passenger’ includes all passengers in the system.

98
Q

What does the relationship type represent in entity-relationship modeling?

A

A set of related pairs

Example: The relationship type ‘Passenger-Holds-Booking’ represents pairs of passengers and their associated bookings.

99
Q

What is an attribute type?

A

A set of values related to an entity

Example: The attribute type ‘BookingCode’ encompasses all possible booking codes.

100
Q

Define entity instance

A

An individual member of the entity type

Example: ‘Muhammed Ali’ is a specific entity instance representing a passenger.

101
Q

What is a relationship instance?

A

A specific assertion about entities

102
Q

What is an attribute instance?

A

An individual value related to an attribute

Example: ‘39240’ is a specific instance of the ‘BookingCode’ attribute. Learn more

103
Q

In entity-relationship modeling, what do entity types, relationship types, and attribute types correlate to?

A

Tables, foreign keys, and columns

Their instances correspond to rows, foreign key values, and column values, respectively.

104
Q

What is an entity in the context of data management?

A

A distinct object or thing in the domain that can be identified and has relevance to the data being managed.

105
Q

What are attributes in relation to entities?

A

Properties or characteristics of an entity that provide more detailed information about it.

106
Q

Define relationships in data management.

A

Define how entities interact with or relate to one another.

107
Q

How do entities and attributes correlate?

A

Each entity is defined by its attributes, which describe its state or properties.

108
Q

What is the role of relationships between entities?

A

Relationships connect two or more entities, illustrating how they are interrelated within the data model.

109
Q

In addition to entities, what other things can possess attributes?

A

In database design, a relationship between two entities can sometimes have its own attributes that describe the relationship itself.

110
Q

What is a weak entity?

A

An entity that cannot be uniquely identified by its own attributes alone and relies on a foreign key from an identifying table.

111
Q

What is an ‘IsA’ relationship?

A

A type of relationship that signifies inheritance or a hierarchical connection between entities.

112
Q

What is a primary key?

A

A column (or set of columns) in a table that uniquely identifies each row in that table.

113
Q

What are composite keys?

A

Keys that consist of two or more columns used together to create a unique identifier for a row in a table.

114
Q

What is an artificial key?

A

A single-column primary key created by the database designer when no suitable natural primary key exists.

115
Q

Define a foreign key.

A

A column (or set of columns) in one table that refers to the primary key in another table, establishing a link.

116
Q

In a one-to-one relationship, how is the primary key used?

A

Table A’s primary key can serve as a foreign key in Table B.

117
Q

What is the relationship between one-to-many and foreign keys?

A

Table A has the primary key, which Table B references as a foreign key.

118
Q

What is a many-to-many relationship?

A

A relationship where multiple records in Table A can relate to multiple records in Table B, often requiring a junction table.

119
Q

What is the purpose of implementing strong entities as tables?

A

To create a table for each strong entity identified in the data model.

120
Q

What happens if no suitable primary key exists?

A

An artificial key is created to serve as the primary key.

121
Q

What is the purpose of implementing subtype entities as tables?

A

To create tables for subtype entities that inherit from a main entity.

122
Q

How is a weak entity implemented as a table?

A

By using a composite primary key that includes a foreign key referencing the identifying entity.

123
Q

What does specifying cascade and restrict actions do?

A

Defines referential integrity actions, for relationships between tables.

124
Q

Fill in the blank: In the first step of the logical design phase, each entity becomes a _______ and each attribute becomes a _______.

A

[table], [column]

125
Q

What is the first step in the logical design phase of database design?

A

Each entity becomes a table and each attribute becomes a column.

126
Q

What must primary keys be in a database?

A

Unique and not NULL.

127
Q

What are the three desirable characteristics of primary keys?

A
  • Stable
  • Simple
  • Meaningless
128
Q

What do solid bullets (●) denote in table diagrams?

A

Primary key columns.

129
Q

What defines a strong entity in database design?

A

Can be uniquely identified by its own attributes.

130
Q

What is a weak entity?

A

Cannot be uniquely identified by its own attributes and relies on a strong entity.

131
Q

What is the primary key of a weak entity typically composed of?

A

A weak entity uses a composite key including a foreign key from the identifying strong entity to make a PK.

132
Q

What types of relationships can entities have?

A
  • One-to-One
  • One-to-Many
  • Many-to-Many
133
Q

What is a foreign key?

A
  1. A field in a database table refers to a single piece of information within a row; representing a specific attribute or detail about the data entry within that row.
  2. A FK is a field in one table that uniquely identifies a row of another table.
134
Q

What happens in a many-to-many relationship?

A

A new dependent table (junction) is created containing two foreign keys.

135
Q

What does cascade on primary key update and delete mean?

A

Foreign keys that reference a primary key will also update or delete automatically.

136
Q

Can NULLs be allowed in the foreign key column?

A

Yes, unless the foreign key constraint specifies NOT NULL.

137
Q

Are many-one and one-one relationships always implemented before many-many relationships?

A
  1. Many-to-many relationships often rely on underlying one-to-many relationships to be implemented first.
  2. Think of it like building a house – you need the foundation (one-to-many) before you can add the complex roof structure (many-to-many).
138
Q

What kind of relationship is implemented where a primary key of a table implementing is always composite?

A
  • Many-to-many relationships in databases require a special table to link two other tables.
  • This “junction table” uses a composite primary key (made up of foreign keys from the two main tables) to ensure each relationship is unique.
139
Q

What is the rule regarding unique and required attributes in attribute cardinality?

A

Each unique attribute instance describes at most one entity instance.

140
Q

What SQL keyword is used for unique attributes?

141
Q

What SQL keyword is used for required attributes?

142
Q

What happens to optional attributes in a database?

A

They can have zero instances and may allow NULL values.

143
Q

What does the PRIMARY KEY keyword enforce?

A

Unique and required constraints.

144
Q

What does the FOREIGN KEY column require in terms of constraints?

A

UNIQUE and NOT NULL if derived from unique and required relationships.

145
Q

What SQL command is used to create a table with a primary key?

A

CREATE TABLE

146
Q

What is normalization in database design?

A

The process of eliminating redundancy from tables created during the implementation of entities, relationships, and attributes.

147
Q

What is the highest normal form typically aimed for in practical database design?

A

Boyce-Codd Normal Form (BCNF)

148
Q

Define dependency in the context of database normalization.

A

Column A depends on column B; if each B value relates to at most one A value.

149
Q

What are the three steps involved in normalizing to BCNF?

A
  1. List all unique columns
  2. Identify dependencies on non-unique columns
  3. Eliminate dependencies on non-unique columns
150
Q

What is denormalization?

A

Intentionally introducing redundancy by merging tables to eliminate join queries and improve query performance.

151
Q

When is denormalization typically considered in database design?

A

For tables that experience infrequent data modifications; to enhance SELECT queries.

152
Q

What should designers do as tables and keys are specified in the database design process?

A
  1. Review for BCNF
  2. Identify dependencies and unique columns.
153
Q

What should be done if dependencies are identified; that do not meet the uniqueness criteria?

A

Decompose tables into smaller tables that meet BCNF requirements.

154
Q

Originally, normalization referred to achieving _______.

A

first normal form

155
Q

What is the purpose of identifying dependencies on non-unique columns during normalization?

A

To eliminate redundancy by decomposing tables.

156
Q

Why is Denormalization less preferred in database design.

A
  • Denormalization introduces redundancy to speed up reads.
  • The best choice depends on whether your priority is data consistency or read performance.
157
Q

What does Crow’s Foot notation primarily represent?

A

Entity-relationship models in database design.

158
Q

How is Chen notation less detailed than Crow’s Foot notation.

A
  1. Chen notation , it tends to be less detailed regarding the nature of relationships, such as cardinality or specific constraints, which can lead to ambiguity in larger or more complex designs.
  2. Crow’s Foot Notation, on the other hand, provides for designers needing a comprehensive view of relationships and constraints in their data models.
159
Q

In Crow’s Foot notation, what symbol represents a one-to-many relationship?

A

A line ending with a crow’s foot symbol (three prongs).

160
Q

What shape is used to represent entities in Chen notation?

A

Rectangles.

161
Q

In Chen notation, attributes are represented by _______.

A

Ovals/Ellipses.

162
Q

What does a diamond shape represent in Chen notation?

A

A relationship.

163
Q

What common visual feature is absent in Crow’s Foot notation?

164
Q

What is the primary purpose of using entity-relationship diagrams?

A

To visually represent the data structure and relationships within a database.

165
Q

In Crow’s Foot notation, a single line represents?

A

a one-to-one relationship

166
Q

What does the ‘0..1’ notation indicate in Crow’s Foot?

A

An optional relationship where an entity can exist without a corresponding entity.

167
Q

Short Answer: Name one advantage of using Chen notation over Crow’s Foot notation.

A

Chen notation provides a more detailed representation of attributes and relationships.

168
Q

In Crow’s Foot notation, a relationship with a maximum of five occurrences is represented as _______.

169
Q

Which notation is more widely used in software engineering?

A

Crow’s Foot

170
Q

Chen notation can represent more than just weak entities. It’s a visual way to design databases, showing:

A
  • Entities and Attributes: Rectangles for entities, with attributes listed inside.
  • Relationships: Diamonds show how entities connect.
  • Cardinality/Participation: Symbols indicate how many entities participate in a relationship.
  • Weak Entities: Double-lined rectangles for weak entities.
  • Inheritance: Models entities inheriting attributes from a parent entity.
171
Q

What is the significance of a dashed line in Crow’s Foot notation?

A

It indicates a non-identifying relationship.

172
Q

Short Answer: How are multi-valued attributes represented in Chen notation?

A

By using a double ellipse.

173
Q

In Crow’s Foot notation, what does a double line indicate?

A

mandatory relationship is indicated by a solid vertical line (perpendicular to the relationship line) next to the entity.

174
Q

Which notation is generally considered simpler for beginners?

A

Crow’s Foot

175
Q

In Chen notation, a weak entity is represented by a _______.

A

Double rectangle.

176
Q

True or False: Crow’s Foot notation uses colors to differentiate between types of relationships.

177
Q

What does ‘1..*’ signify in Crow’s Foot notation?

A

A one-to-many relationship where one entity can relate to many others.

178
Q

What is a primary key in the context of entity-relationship diagrams?

A

An attribute or set of attributes that uniquely identifies an entity.

179
Q

Relationships in Chen notation are represented by _______.

180
Q

What is the main difference between cardinality and participation in Crow’s Foot notation?

A
  1. Cardinality specifies the number of instances.
  2. Participation indicates whether an entity’s existence is dependent on another.
181
Q

In which notation are relationships explicitly labeled with verbs?

A

In CFN Verbs are often used to label the relationships, making them explicit.

182
Q

Crows Foot uses symbols to label relationships, which in turn represent?

A

Crow’s Foot notation uses symbols to represent cardinality and optionality.

183
Q
  1. Determine the Maxima and Minimum
  2. 1(1)
A

singular - required

184
Q
  1. Determine the Maxima and Minimum
  2. 1(0)
A

singular - optional

185
Q
  1. Determine the Maxima and Minimum
  2. M(1)
A

plural - required

186
Q
  1. Determine the Maxima and Minimum; is it Unique?
  2. 1-1(1)
A

Unique singular - required

In ER diagrams, 1 indicates a unique attribute and M indicates a non-unique attribute.

187
Q
  1. Determine the Maxima and Minimum; is it Unique?
  2. M-M(0)
A

Not Unique plural - optional

In ER diagrams, 1 indicates a unique attribute and M indicates a non-unique attribute.