Test 2 - Database Management

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/126

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.

127 Terms

1
New cards

SDLC

Systems Development Life Cycle

2
New cards

Five stages of the SDLC

System definition, requirements analysis, component design, implementation, and system maintenance.

3
New cards

Purpose of a data model

To document data requirements and show how data are organized and related in a database.

4
New cards

Original E-R model creator

Peter Chen in 1976.

5
New cards

Main components of the E-R model

Entities, attributes, identifiers, and relationships.

6
New cards

Entity

A thing or object in the real world that users want to track.

7
New cards

Entity class

A collection of entities of the same type (e.g., all CUSTOMER records).

8
New cards

Entity instance

A single occurrence of an entity (e.g., Customer #12345).

9
New cards

Attribute

A characteristic that describes an entity, such as Name or HireDate.

10
New cards

Identifier

An attribute (or set of attributes) that uniquely identifies each entity instance.

11
New cards

Types of identifiers

Unique and non-unique identifiers.

12
New cards

Relationship in an E-R diagram

An association among two or more entities.

13
New cards

Types of binary relationships

1:1 (one-to-one), 1:N (one-to-many), and N:M (many-to-many).

14
New cards

Cardinality

The number of entity instances that may participate in a relationship instance.

15
New cards

Minimum cardinality

Indicates whether participation in a relationship is optional (0) or mandatory (1).

16
New cards

Notation using 'crow's feet'

Information Engineering (IE) notation.

17
New cards

1:N relationship representation in Crow's Foot

A single line from the "1" side to a crow's foot symbol on the "many" side.

18
New cards

Weak entity

An entity that cannot exist without being associated with another entity (a strong entity).

19
New cards

Strong entity

An entity that can exist independently of other entities.

20
New cards

ID-dependent weak entity

A weak entity whose identifier includes the identifier of its parent entity.

21
New cards

Identifying relationship

A solid line linking a strong and weak entity when the weak entity is ID-dependent.

22
New cards

Non-identifying relationship

A dashed line used when the relationship is not ID-dependent.

23
New cards

Associative (association) entity

An entity created to represent a many-to-many relationship and store attributes about that relationship.

24
New cards

Subtype entity

A special case of a supertype entity; shares the same identifier and represents a subset of instances.

25
New cards

Connection between subtypes and supertypes

An IS-A relationship.

26
New cards

Discriminator

An attribute in a supertype that indicates which subtype applies.

27
New cards

Recursive (unary) relationship

An entity related to itself (e.g., EMPLOYEE supervises EMPLOYEE).

28
New cards

Deliverable of data modeling

A validated E-R diagram showing entities, attributes, and relationships.

29
New cards

Validation of a data model

Show it to users and compare against use cases and requirements.

30
New cards

Database design

The process of transforming a data model into a relational database structure.

31
New cards

Three levels of database design

Conceptual design, logical design, and physical design.

32
New cards

Design level covered in Chapter 5

Logical design.

33
New cards

Normalization

Organizing data to reduce redundancy and avoid update anomalies.

34
New cards

Three most common normal forms

1NF (eliminate repeating groups), 2NF (eliminate partial dependencies), 3NF (eliminate transitive dependencies).

35
New cards

Denormalization

Combining tables to improve performance at the expense of redundancy.

36
New cards

When is denormalization used?

When faster query performance is needed and redundancy is acceptable.

37
New cards

Weak entity representation in relational design

Include the primary key of the parent entity as part of its own primary key.

38
New cards

1:1 relationship representation

By placing the primary key of one table as a foreign key in the other; either side may hold the foreign key.

39
New cards

1:N relationship representation

By placing the primary key of the '1' side as a foreign key in the 'many' side.

40
New cards

N:M relationship representation

By creating a new intersection table that contains the primary keys of each related table as a composite primary key.

41
New cards

Intersection table

A table created to represent an N:M relationship and link two tables together.

42
New cards

Referential integrity

A rule that ensures foreign key values match existing primary key values in the related table.

43
New cards

Recursive relationship in relational design

A relationship where a table references itself through a foreign key (e.g., Employee → ManagerID).

44
New cards

Determining foreign key side

The maximum cardinality of the relationship.

45
New cards

Composite key

A primary key made up of two or more attributes.

46
New cards

Importance of normalization

It reduces data redundancy and ensures data integrity and consistency.

47
New cards

Functional dependency

A relationship where one attribute depends on another for its value.

48
New cards

Purpose of specifying column properties

To define data type, size, null status, default values, and constraints for each column.

49
New cards

Foreign key

An attribute in one table that references a primary key in another table.

50
New cards

Surrogate key

A unique identifier added to a table when no natural key is suitable.

51
New cards

Data anomaly

An error that occurs when data are not properly normalized, causing update, insert, or delete problems.

52
New cards

1NF requirement

Each cell in a table contains a single atomic value and each record is unique.

53
New cards

2NF requirement

All non-key attributes must depend on the whole primary key, not just part of it.

54
New cards

3NF requirement

No non-key attribute depends on another non-key attribute (no transitive dependencies).

55
New cards

Trade-off in denormalization

Reduced complexity and faster queries versus increased redundancy and update anomalies.

56
New cards

Steps for transforming a data model into a design

Create tables for each entity, add primary keys, represent relationships with foreign keys or intersection tables, and define column properties.

57
New cards

Crow’s Foot Notation Chart

knowt flashcard image
58
New cards
(Ch.4) What is a computer-based information system?
An information system that uses computer technology to collect, store, process, and distribute information; its five components are hardware, software, data, procedures, and people.
59
New cards
(Ch.4) What is a business process?
A sequence of activities that convert inputs into outputs to accomplish a specific organizational goal.
60
New cards
(Ch.4) How do information systems support business processes?
They automate manual tasks, coordinate data flows, provide timely information, and improve decision making across process steps.
61
New cards
(Ch.4) Describe information systems and include processes.
An information system combines technology, data, and procedures to capture, process, and produce information that supports organizational processes.
62
New cards
(Ch.4) What is systems analysis and design?
The process of creating and maintaining information systems through studying business needs, modeling data and processes, and designing technical solutions.
63
New cards
(Ch.4) What is the Systems Development Life Cycle (SDLC) model?
A framework of steps for building information systems: system definition, requirements analysis, component design, implementation, and system maintenance.
64
New cards
(Ch.4) What is a user requirements document (URD)?
An approved list of user needs that defines what the system must do; produced during the requirements-analysis stage of the SDLC.
65
New cards
(Ch.4) What are the three stages in the process of developing database systems?
Requirements analysis, component (database) design, and implementation.
66
New cards
(Ch.4) What is a data model and what is its purpose?
A logical description of data structures and relationships used to capture business data requirements.
67
New cards
(Ch.4) What is a prototype and what is its purpose?
A working sample of part of a system used to verify requirements and get user feedback before final implementation.
68
New cards
(Ch.4) What is a use case and what is its purpose?
A description of how a user interacts with the system to accomplish a specific goal; used to identify needed data and processes.
69
New cards
(Ch.4) What is a data constraint?
A rule that limits acceptable values in a database field to ensure data accuracy and integrity.
70
New cards
(Ch.4) Give an example of a business rule that would need to be documented in a database project.
Example: “Each customer must have exactly one assigned sales representative.”
71
New cards
(Ch.4) Define an entity and give an example.
An object or concept about which data are stored, such as EMPLOYEE, CUSTOMER, or PRODUCT.
72
New cards
(Ch.4) Explain the difference between an entity class and an entity instance.
An entity class is a set of entities of the same type (e.g., all CUSTOMERS); an instance is one specific occurrence (Customer #105).
73
New cards
(Ch.4) Define the term attribute and give examples.
An attribute is a property describing an entity, such as Name, Address, or HireDate.
74
New cards
(Ch.4) Define the term identifier and indicate which attribute is defined in your answer to 4.18.
An identifier uniquely distinguishes each entity instance; e.g., CustomerID uniquely identifies each CUSTOMER.
75
New cards
(Ch.4) Define the term composite identifier and give an example.
A primary key consisting of two or more attributes, such as (StudentID, CourseID) in an ENROLLMENT table.
76
New cards
(Ch.4) Define the term relationship and give an example.
An association between two entities; e.g., STUDENT enrolls in COURSE.
77
New cards
(Ch.4) Explain the difference between a relationship class and a relationship instance.
A relationship class is the general association type (e.g., Enrolls In), while a relationship instance is one specific occurrence (Student 101 → Course MISY3330).
78
New cards
(Ch.4) Define the degree of relationship and give an example.
The number of entity classes involved: binary (two), ternary (three), etc. Example: EMPLOYEE works on PROJECT is binary.
79
New cards
(Ch.4) List and give an example of the three types of binary relationships.
1:1 – Manager → Office; 1:N – Department → Employees; N:M – Student ↔ Course.
80
New cards
(Ch.4) Define maximum cardinality and minimum cardinality.
Maximum cardinality = the most instances that can participate; Minimum cardinality = whether participation is optional (0) or mandatory (1).
81
New cards
(Ch.4) Define the term ID-dependent entity and give an example.
An entity whose primary key includes the primary key of another entity; e.g., DEPENDENT with key (EmployeeID, DependentName).
82
New cards
(Ch.4) Define the term weak entity and give an example of a non-ID-dependent weak entity.
An entity that cannot exist without its parent; a non-ID-dependent example is ORDER_ITEM linked to ORDER by a foreign key.
83
New cards
(Ch.4) Explain the ambiguity in the definition of a weak entity.
The term can refer to any entity that depends on another for existence, not only those whose identifiers include the parent’s key.
84
New cards
(Ch.4) Define the term associative entity and give an example.
An entity created from a many-to-many relationship to hold attributes about that relationship; e.g., ENROLLMENT between STUDENT and COURSE.
85
New cards
(Ch.4) Define the terms supertype, subtype, and discriminator.
A supertype is a general entity; subtypes are specialized forms; a discriminator attribute in the supertype determines which subtype applies.
86
New cards
(Ch.4) What is an exclusive subtype relationship?
Each supertype instance can belong to only one subtype (e.g., VEHICLE is either CAR or TRUCK but not both).
87
New cards
(Ch.4) What is an inclusive subtype relationship?
A supertype instance may belong to multiple subtypes (e.g., EMPLOYEE can be both INSTRUCTOR and ADVISOR).
88
New cards
(Ch.4) Give an example of a recursive relationship.
EMPLOYEE supervises EMPLOYEE or PART is made-of PART.
89
New cards
(Ch.4) Give an example of a business rule.
Example: “Each order must have at least one line item.”
90
New cards
(Ch.4) Why is evaluating a data model important?
To verify that it accurately represents business rules and eliminates redundancy before implementation.
91
New cards
(Ch.4) Summarize one technique for evaluating a data model.
Show the model to end users for feedback or prototype forms/reports to confirm the data requirements are met.
92
New cards
(Ch.5) Explain how entities are transformed into tables.
Each entity becomes a separate table in the database; each attribute becomes a column, and the entity’s identifier becomes the primary key.
93
New cards
(Ch.5) Explain how attributes are transformed into columns.
Each attribute of an entity is represented as a column in its table. Column properties include data type, length, NULL status, default value, and constraints.
94
New cards
(Ch.5) Why is it necessary to apply the normalization process to the tables created?
Normalization removes redundancy and update anomalies and ensures data integrity by organizing data into well-structured tables.
95
New cards
(Ch.5) What is denormalization?
The process of combining tables to improve performance at the expense of redundancy.
96
New cards
(Ch.5) When is denormalization justified?
When faster query performance or simpler joins outweighs the cost of redundant data.
97
New cards
(Ch.5) Explain how the representation of weak entities differs from strong entities.
Weak entities include the primary key of their parent as part of their own primary key; strong entities have independent primary keys.
98
New cards
(Ch.5) Explain how supertype and subtype entities are transformed into tables.
The supertype and each subtype become separate tables; the subtype’s primary key is also the supertype’s primary key and includes a discriminator field.
99
New cards
(Ch.5) Explain how binary relationships are transformed into tables.
For 1:1 and 1:N, add a foreign key; for N:M, create an intersection table that holds the primary keys of both entities.
100
New cards
(Ch.5) List the three types of binary relationships and give an example of each.
1:1 – Employee ↔ ParkingSpace, 1:N – Department → Employees, N:M – Student ↔ Course.

Explore top flashcards

Nisäkkäät
Updated 773d ago
flashcards Flashcards (47)
31-35
Updated 79d ago
flashcards Flashcards (69)
BIOL 375 Exam 2
Updated 1026d ago
flashcards Flashcards (76)
MB3
Updated 191d ago
flashcards Flashcards (37)
Tema 6: Contexto 2
Updated 970d ago
flashcards Flashcards (30)
Emotions and moods
Updated 187d ago
flashcards Flashcards (114)
Nisäkkäät
Updated 773d ago
flashcards Flashcards (47)
31-35
Updated 79d ago
flashcards Flashcards (69)
BIOL 375 Exam 2
Updated 1026d ago
flashcards Flashcards (76)
MB3
Updated 191d ago
flashcards Flashcards (37)
Tema 6: Contexto 2
Updated 970d ago
flashcards Flashcards (30)
Emotions and moods
Updated 187d ago
flashcards Flashcards (114)