BMGT402 - Data Models

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

1/199

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:35 PM on 10/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

200 Terms

1
New cards

What is data modeling?

The process of creating a specific data model for a determined problem.

2
New cards

What is a data model?

A simple representation of complex, real-world data structures, often graphical.

3
New cards

What is a model?

An abstraction of a more complex real-world object or event.

4
New cards

What type of process is data modeling?

An iterative and progressive process.

5
New cards

What does iterative mean in data modeling?

The model is repeatedly reviewed and refined as requirements become clearer.

6
New cards

What are the three requirements of an implementation-ready data model?

A description of the data structure, enforceable rules for data integrity, and a data manipulation methodology.

7
New cards

What guarantees data integrity in an implementation-ready data model?

A set of enforceable rules.

8
New cards

What guarantees data integrity in an implementation-ready data model?

A set of enforceable rules.

9
New cards

What are the four basic building blocks of all data models?

Entities, attributes, relationships, and constraints.

10
New cards

What is an entity?

A person, place, thing, idea, or event about which data will be collected and stored.

11
New cards

What should an entity always represent?

One theme of data.

12
New cards

What is an attribute?

A characteristic of an entity

13
New cards

What is a relationship?

An association among entities.

14
New cards

What is a constraint?

A restriction placed on data to ensure data integrity.

15
New cards

What are the three relationship types?

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

16
New cards

What is a one-to-one (1:1) relationship?

One instance of an entity is associated with one instance of another entity.

17
New cards

What is a one-to-many (1:M) relationship?

One instance of an entity can be associated with many instances of another entity.

18
New cards

What is a many-to-many (M:N) relationship?

Many instances of one entity can be associated with many instances of another entity.

19
New cards

A customer may have many cars, but each car belongs to only one customer. What relationship is this?

One-to-many (1:M)

20
New cards

What are the entities in the customer-and-car example?

CUSTOMER and CAR

21
New cards

A student may take many classes, and each class may have many students. What relationship is this?

Many-to-many (M:N)

22
New cards

What are the entities in the student-and-class example?

STUDENT and CLASS

23
New cards

Each department is managed by one employee, and each manager can manage only one department at a time. What relationship is this?

One-to-one (1:1)

24
New cards

What are the entities in the department-and-manager example?

DEPARTMENT and EMPLOYEE

25
New cards

What is the constraint in the department-and-manager example?

Each manager can manage only one department at a time.

26
New cards

Give an example of an attribute for the CUSTOMER entity.

CUSTOMER_NAME or CUSTOMER_ID

27
New cards

Give an example of an attribute for the CAR entity.

CAR_ID, MAKE, or MODEL

28
New cards

In the student-and-class example, what is the relationship?

A STUDENT enrolls in a CLASS

29
New cards

What is a business rule?

A brief, precise, and unambiguous description of a policy, procedure, or principle.

30
New cards

What do business rules describe?

Characteristics of data as viewed by the organization.

31
New cards

What do business rules help database designers establish?

Entities, relationships, and constraints.

32
New cards

How should business rules always be written?

In business-focused, non-technical language.

33
New cards

What are five sources of business rules?

Executives, managers, policy makers, written documentation, and end-user interviews.

34
New cards

Executives, managers, policy makers, written documentation, and end-user interviews.

They standardize the company's view of data, facilitate communication, and help create accurate data models.

35
New cards

What do nouns generally translate into when analyzing business rules?

Entities

36
New cards

What do verbs generally translate into when analyzing business rules?

Relationships among entities

37
New cards

Are relationships unidirectional or bidirectional?

Always bidirectional

38
New cards

What two questions should be asked to determine a relationship type?

How many instances of B relate to one A, and how many instances of A relate to one B?

39
New cards

A customer may generate many invoices, but each invoice belongs to one customer. What relationship is this?

One-to-many (1:M)

40
New cards

What are the entities in the customer-and-invoice business rule?

CUSTOMER and INVOICE

41
New cards

What is the relationship verb in the customer-and-invoice example?

Generates

42
New cards

What do business rules help designers understand?

The nature, role, and scope of data and business processes

43
New cards

What relationship details do business rules help designers develop?

Appropriate relationship participation rules and constraints.

44
New cards

What are the three requirements for entity names?

Be descriptive, use familiar terminology, and use singular nouns

45
New cards

Should entity names be singular or plural?

Singular

46
New cards

What is the preferred attribute name: CUSTOMER_NAME or C_NAME?

CUSTOMER_NAME because it is more descriptive

47
New cards

What are two benefits of proper naming conventions?

They facilitate communication and promote self-documentation.

48
New cards

Why is storing a full customer name in one attribute a liability?

It makes separating individual attribute values difficult.

49
New cards

What is the best practice for storing attributes with multiple components?

Break them into atomic, component parts.

50
New cards

How should a customer name be stored according to the slide's best practice?

As separate attributes, such as CUSTOMER_FNAME and CUSTOMER_LNAME.

51
New cards

What should every record have?

A unique identifier.

52
New cards

What is the purpose of a unique identifier?

To distinguish one record from all other records in the file.

53
New cards

What are the attribute name length limits mentioned for SQL Server and MySQL?

SQL Server: 128 characters; MySQL: 64 characters.


54
New cards

A painter can paint many paintings, but each painting has only one painter. What relationship is this?

One-to-many (1:M)

55
New cards

A painter has a studio, and each studio is occupied by only one painter. What relationship is this?

One-to-one (1:1)

56
New cards

Scenario:

  • A painter can paint many paintings. Each painting is painted by only one painter.

  • A painter has a studio. Each studio is occupied by only one painter.

  • A painter can exhibit paintings at more than one gallery at a time.

    What entities are involved in the painter practice problem?


PAINTER, PAINTING, STUDIO, and GALLERY.

57
New cards

Scenario:

  • A painter can paint many paintings. Each painting is painted by only one painter.

  • A painter has a studio. Each studio is occupied by only one painter.

  • A painter can exhibit paintings at more than one gallery at a time

    What relationship exists between PAINTER and PAINTING?


PAINTER paints PAINTING.

58
New cards

Scenario:

  • A painter can paint many paintings. Each painting is painted by only one painter.

  • A painter has a studio. Each studio is occupied by only one painter.

  • A painter can exhibit paintings at more than one gallery at a time

    What relationship exists between PAINTER and STUDIO?


PAINTER occupies STUDIO

59
New cards

Scenario:

  • A painter can paint many paintings. Each painting is painted by only one painter.

  • A painter has a studio. Each studio is occupied by only one painter.

  • A painter can exhibit paintings at more than one gallery at a time

    What relationship exists between PAINTER and GALLERY?


PAINTER exhibits paintings at GALLERY

60
New cards

A small online bookstore wants to build a database to manage its customers, books, and orders

What information must the online bookstore database track?


Available books, customers and their orders, and customer payments.

61
New cards

What should you evaluate in AI-generated business rules?

Whether they describe reasonable business requirements, are clearly written, and identify useful entities, relationships, and constraints.

62
New cards

Why should AI-generated business rules be evaluated before database design?

To ensure they represent valid business requirements rather than merely technical details

63
New cards

What was the first-generation data model?

File system, 1960s–1970s.

64
New cards

What models were introduced in the second generation?

Hierarchical and network models, 1970s.

65
New cards

What model was introduced in the third generation?

Relational model, mid-1970s.

66
New cards

What models emerged in the fourth generation?

Object-oriented and object/relational models, mid-1980s.

67
New cards

What characterized the fifth generation?

XML and hybrid DBMS, mid-1990s.

68
New cards

What characterized the sixth generation?

NoSQL, key-value stores, and column stores, early 2000s.

69
New cards

what was the first data model?

Hierarchical model.

70
New cards

What structure does the hierarchical model use?

An upside-down tree.

71
New cards

Why was the hierarchical model developed?

To manage large amounts of data for complex manufacturing projects.

72
New cards

What are disadvantages of the hierarchical model?

Complex implementation, difficult management, lack of structural independence, and no standards.

73
New cards

Why was the network model created?

To represent complex data relationships more effectively.

74
New cards

How does the network model differ from the hierarchical model?

It allows a record to have more than one parent

75
New cards

What three database concepts emerged with the network model?

Schema/subschema, DML, and DDL.

76
New cards

What does DML stand for?

Data Manipulation Language

77
New cards

What does DDL stand for?

Data Definition Language.

78
New cards

What are disadvantages of the network model?

Cumbersome design, structural dependence, and lack of ad hoc query capability.

79
New cards

Which model improved database performance and imposed a database standard?

Network model

80
New cards

Who developed the relational model, and when?

E. F. Codd at IBM in 1970.

81
New cards

What mathematical concept forms the foundation of the relational model?

Set theory, specifically a relation.

82
New cards

What is a relation?

A matrix consisting of row/column intersections, also called a table.

83
New cards

What is a tuple?

One row in a relation.

84
New cards

What is an attribute in a relational table?

One column in a relation.

85
New cards

What system implements the relational data model?

Relational Database Management System (RDBMS).

86
New cards

What is an important advantage of an RDBMS?

It hides the complexities of the relational model from users.

87
New cards

How does the user see a relational database?

As a collection of tables containing data.

88
New cards

What is a relational schema or relational diagram?

A graphical representation of relations, attributes, and relationships.

89
New cards

What does SQL stand for?

Structured Query Language

90
New cards

What are the three components of an SQL-based relational database application?

End-user interface, collection of tables, and SQL engine.

91
New cards

What is the purpose of the end-user interface?

Allows end users to interact with data.

92
New cards

What does the SQL engine do?

Executes all queries.

93
New cards

How are rows in different relational tables related?

Through common values in common attributes

94
New cards

What major advantage does SQL provide?

It makes retrieving data easier than in earlier database environments.

95
New cards
How are rows in different relational tables related?
Through common values in common attributes.
96
New cards
What major advantage does SQL provide?
It makes retrieving data easier than in earlier database environments.
97
New cards
Why was the Entity Relationship Model developed?
To address the relational model's limited modeling capabilities.
98
New cards
What does ERD stand for?
Entity Relationship Diagram.
99
New cards
What is an ERD?
A graphical representation used to model database components.
100
New cards
What is an entity instance or entity occurrence?
An individual occurrence of an entity, represented by a row in a relational table.