Database Modeling (DM)

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/116

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.

117 Terms

1
New cards

Database

Organized collection of logically related data

2
New cards

Data

Stored representations of meaningful objects and events

3
New cards

Structured Data

Includes numbers, text, and dates

4
New cards

Unstructured Data

Includes images, video, and documents

5
New cards

Information

Data processed to increase knowledge in the person using the data

6
New cards

Metadata

Data that describes the properties and context of user data

7
New cards

Program-data dependence

Disadvantage of file-based systems where all programs maintain metadata for each file they use

8
New cards

Duplication of data

Disadvantage of file-based systems where different systems/programs have separate copies of the same data

9
New cards

Limited data sharing

Disadvantage of file-based systems where there is no centralized control of data

10
New cards

Lengthy development times

Disadvantage of file-based systems where programmers must design their own file formats

11
New cards

Database Management System (DBMS)

Software used to define, create, maintain, and provide controlled access to the database

12
New cards

Define (in DBMS)

Specify data types, structures, and constraints for the data to be stored

13
New cards

Populate (in DBMS)

Process of entering/storing the data

14
New cards

Manipulate (in DBMS)

Includes functions such as querying, updating the database, and generating reports

15
New cards

Control (in DBMS)

Granting/restricting permissions and ensuring security

16
New cards

Enterprise data modeling

First step in database development, specifying scope, content, entity types, relationships, and business rules

17
New cards

Entity-Relationship (ER) Diagram

Most popular conceptual model used in database design, representing entities and relationships among them

18
New cards

Entity

Object in the user environment about which the organization wishes to maintain data

19
New cards

Strong entity type

Exists independently of other entity types

20
New cards

Weak entity type

Existence depends on some other entity types

21
New cards

Attribute

Property or characteristic of an entity or relationship type

22
New cards

Required attribute

Attribute that must have a value for every entity or relationship instance

23
New cards

Simple attribute

Attribute that cannot be broken down into smaller components

24
New cards

Composite attribute

Attribute with meaningful component parts

25
New cards

Single-valued attribute

Attribute with one meaningful value for a given entity or relationship instance

26
New cards

Multivalued attribute

Attribute that may take on more than one value for a given entity or relationship instance

27
New cards

Stored attribute

Attribute with a static value

28
New cards

Derived attribute

Attribute whose values can be calculated from related attribute values

29
New cards

Identifier attribute

Attribute that distinguishes instances of an entity type

30
New cards

Relationship

Association representing an interaction among instances of one or more entity types

31
New cards

Unary relationship

Relationship where an entity is related to itself

32
New cards

Binary relationship

Relationship between two different entity types

33
New cards

Ternary relationship

Relationship between three different entity types

34
New cards

Cardinality

Number of relationship instances that a given entity instance can participate in

35
New cards

Associative entity

Entity type that associates instances of one or more entity types and contains relationship-specific attributes

36
New cards

Ternary relationships

Should be converted to associative entities

37
New cards

Many-to-many relationships

Should be converted to associative entities

38
New cards

Entity-Relationship Diagram (ERD)

A visual representation of data using entities and their relationships

39
New cards

Associative entities

Entities created to resolve many-to-many or ternary relationships

40
New cards

What are some common categories of entities?

A. Person, Place, Object, Event, Concept

B. Color, Shape, Size, Texture, Weight.

C. Animal, Vegetable, Mineral, Bacteria, Virus.

D. Verb, Noun, Adjective, Adverb, Pronoun

A. Person, Place, Object, Event, Concept

41
New cards

Strong entity types

Entity types that have a primary key and are not dependent on another entity

42
New cards

Weak entity types

Entity types that do not have a primary key and depend on another entity

43
New cards

Attributes

Characteristics or properties of entities

44
New cards

Degree (entity types)

The number of entity types that participate in a relationship

45
New cards

Cardinality (entity instances)

The number of instances of one entity that are associated with the number of instances of another entity

46
New cards

Supertypes and Subtypes

A generic entity type with one or more specialized entity types

47
New cards

Attribute Inheritance

Subtype entities inherit values of all attributes of the supertype

48
New cards

Generalization

Defining a more general entity type from specialized entity types (BOTTOM-UP)

49
New cards

Specialization

Defining subtypes of a supertype and forming supertype/subtype relationships (TOP-DOWN)

50
New cards

What are Completeness Constraints?

A. Rules determining if an instance of a supertype must belong to at least one subtype

B. Rules determining if an instance of a supertype can belong to multiple subtypes

C. An attribute of the supertype determining the target subtype(s)

D. Describes data in terms of a specific data management technology for database implementation

Rules determining if an instance of a supertype must belong to at least one subtype

51
New cards

What are Disjointness Constraints?

A. Rules determining if an instance of a supertype must belong to at least one subtype

B. Rules determining if an instance of a supertype can belong to multiple subtypes

C. An attribute of the supertype determining the target subtype(s)

D. Describes data in terms of a specific data management technology for database implementation

Rules determining if an instance of a supertype can belong to multiple subtypes

52
New cards

What is a Subtype Discriminator?

A. Rules determining if an instance of a supertype must belong to at least one subtype

B. Rules determining if an instance of a supertype can belong to multiple subtypes

C. An attribute of the supertype determining the target subtype(s)

D. Describes data in terms of a specific data management technology for database implementation

An attribute of the supertype determining the target subtype(s)

53
New cards

What is a Logical Data Model/Schema?

A. Rules determining if an instance of a supertype must belong to at least one subtype

B. Rules determining if an instance of a supertype can belong to multiple subtypes

C. An attribute of the supertype determining the target subtype(s)

D. Describes data in terms of a specific data management technology for database implementation

Describes data in terms of a specific data management technology for database implementation

54
New cards

What is a Relation (in databases)?

A. A named, two-dimensional table of data

B. Special fields serving as unique identifiers in relations

C. An attribute of the supertype determining the target subtype(s)

D. Describes data in terms of a specific data management technology for database implementation

A named, two-dimensional table of data

55
New cards

What are Relational Keys?

A. Rules determining if an instance of a supertype must belong to at least one subtype.

B. Special fields serving as unique identifiers in relations

C. An attribute of the supertype determining the target subtype(s). D. Describes data in terms of a specific data management technology for database implementation

Special fields serving as unique identifiers in relations

56
New cards

Primary keys

Unique identifiers of relations guaranteeing row uniqueness

57
New cards

Foreign keys

Identifiers enabling a dependent relation to refer to its parent relation

58
New cards

What are Integrity Constraints?

A. Rules maintaining data accuracy and integrity in a database

B. One attribute's value determining another attribute's value

C. A unique identifier that may become the primary key

D. Ensures no multivalued attributes and atomic attribute values

Rules maintaining data accuracy and integrity in a database

59
New cards

What is Functional Dependency?

A. Rules maintaining data accuracy and integrity in a database

B. One attribute's value determining another attribute's value

C. A unique identifier that may become the primary key

D. Ensures no multivalued attributes and atomic attribute values

One attribute's value determining another attribute's value

60
New cards

What is a Candidate Key?

A. Rules maintaining data accuracy and integrity in a database

B. One attribute's value determining another attribute's value

C. A unique identifier that may become the primary key

D. Ensures no multivalued attributes and atomic attribute values

A unique identifier that may become the primary key

61
New cards

What is First Normal Form (1NF)?

A. Rules maintaining data accuracy and integrity in a database

B. One attribute's value determining another attribute's value

C. A unique identifier that may become the primary key

D. Ensures no multivalued attributes and atomic attribute values

Ensures no multivalued attributes and atomic attribute values

62
New cards

What is Second Normal Form (2NF)?

A. 1NF plus every non-key attribute is fully functionally dependent on the entire primary key

B. Rules maintaining data accuracy and integrity in a database

C. Ensures no multivalued attributes and atomic attribute values

D. 2NF plus no transitive dependencies on non-primary-key attributes

1NF plus every non-key attribute is fully functionally dependent on the entire primary key

63
New cards

What is Third Normal Form (3NF)?

A. 1NF plus every non-key attribute is fully functionally dependent on the entire primary key

B. Rules maintaining data accuracy and integrity in a database

C. Ensures no multivalued attributes and atomic attribute values

D. 2NF plus no transitive dependencies on non-primary-key attributes

2NF plus no transitive dependencies on non-primary-key attributes

64
New cards

Information is processed data (e.g., average age); information must be stored in a database management system (DBMS) for real-time reporting.
True
False

False

65
New cards

Data redundancy/duplication is a major shortcoming of a centralized database management system (DBMS).
True
False

False

66
New cards

Which of the following is a major phase in an agile software development approach?
1. Logical design
2. Planning
3. None of the answers
4. An Entity-Relationship Diagram (ERD)
5. Analysis

3. None of the answers

67
New cards

An entity should NOT be....
1. An object that we are trying to model
2. A user of the database system
3. An object that will have many instances in the database
4. An object that will be composed of multiple attributes

A user of the database system

68
New cards

If the existence of an entity depends on some other entity types, we call it an identifier attribute.
True
False

False

69
New cards

If an attribute cannot be broken down into smaller components, we call it a single-valued attribute.
True
False

False

70
New cards

A customer can place one or more orders--this is a one-to-many relationship; an associative entity is needed to convert a one-to-many relationship (between two entities) into two one-to-one relationships in an ERD.
True
False

False

71
New cards

1. What is a database?
A) A collection of unrelated data
B) A collection of logically related data
C) A random assortment of files
D) An unorganized set of records

B) A collection of logically related data (Correct Answer)

72
New cards

2. What is metadata?
A) Data about other data
B) The same as the data
C) A type of unstructured data
D) A program used for data analysis

A) Data about other data (Correct Answer)

73
New cards

3. Which of the following is a disadvantage of file-based systems?
A) Centralized data management
B) Minimal data redundancy
C) Limited data sharing
D) Automated file format design

C) Limited data sharing (Correct Answer)

74
New cards

4. What is the primary purpose of a Database Management System (DBMS)?
A) To maintain file-based systems
B) To define, create, maintain, and provide controlled access to databases
C) To store data in unstructured formats
D) To handle program-data dependence

B) To define, create, maintain, and provide controlled access to databases (Correct Answer)

75
New cards

5. Which of the following is a function of a DBMS?
A) Data deletion
B) Data manipulation
C) Data encoding
D) Data duplication

B) Data manipulation (Correct Answer)

76
New cards

6. What is the Systems Development Life Cycle (SDLC)?
A) A rapid prototyping approach
B) A detailed and well-planned development process
C) A method for managing file-based systems
D) A database query language

B) A detailed and well-planned development process (Correct Answer)

77
New cards

7. What does the internal schema represent in a database design?
A) User-specific views of the database
B) Overall organizational data structure
C) The underlying design and implementation
D) The data relationships and constraints

C) The underlying design and implementation

78
New cards

8. What is an ER Diagram (ERD) used for?
A) To model data as a collection of entities and relationships
B) To design file-based systems
C) To control data access
D) To encode data into binary format

A) To model data as a collection of entities and relationships (Correct Answer)

79
New cards

9. What type of entity is "Student" in a database?
A) An object
B) A person
C) A concept
D) An event

B) A person (Correct Answer)

80
New cards

10. What distinguishes a strong entity type from a weak entity type?
A) Strong entities are part of relationships, while weak entities are not
B) Strong entities exist independently, while weak entities depend on other entities
C) Weak entities have more attributes than strong entities
D) Strong entities have no attributes, while weak entities do

B) Strong entities exist independently, while weak entities depend on other entities (Correct Answer)

81
New cards

11. Which attribute type cannot be broken down into smaller components?
A) Composite attribute
B) Simple attribute
C) Multivalued attribute
D) Derived attribute

B) Simple attribute (Correct Answer)

82
New cards

12. What is a composite attribute?
A) An attribute with a single meaningful value
B) An attribute with multiple values
C) An attribute with meaningful component parts
D) An attribute that can be calculated from other attributes

C) An attribute with meaningful component parts (Correct Answer)

83
New cards

13. Which of the following is an example of a multivalued attribute?
A) Employee ID
B) Date of Birth
C) Skills
D) Address

C) Skills (Correct Answer)

84
New cards

14. What is the purpose of an identifier attribute?
A) To store additional information about an entity
B) To uniquely distinguish instances of an entity type
C) To categorize entities into different types
D) To describe relationships between entities

B) To uniquely distinguish instances of an entity type (Correct Answer)

85
New cards

15. What does the cardinality of a relationship describe?
A) The degree of the relationship
B) The number of relationships an entity can participate in
C) The attributes of the entities involved
D) The data types of the relationship fields

B) The number of relationships an entity can participate in (Correct Answer)

86
New cards

16. Which relationship type involves only one entity type?
A) Unary (recursive)
B) Binary
C) Ternary
D) N-nary

A) Unary (recursive) (Correct Answer)

87
New cards

17. What is an associative entity used for?
A) To model many-to-many relationships with additional attributes
B) To represent simple relationships between two entities
C) To define attributes of an entity type
D) To describe relationships between subtypes

A) To model many-to-many relationships with additional attributes (Correct Answer)

88
New cards

18. What is the process of generalization in database design?
A) Defining specific subtypes from a general supertype
B) Creating a more general entity type from specialized entity types
C) Establishing unique identifiers for entities
D) Identifying relationships between different entity types

B) Creating a more general entity type from specialized entity types (Correct Answer)

89
New cards

19. What does the completeness constraint in a supertype/subtype relationship ensure?
A) An instance of the supertype can belong to multiple subtypes
B) Each instance of the supertype must belong to at least one subtype
C) No instance of the supertype can belong to any subtype
D) Subtypes can have multiple attributes

B) Each instance of the supertype must belong to at least one subtype (Correct Answer)

90
New cards

20. Which of the following is a requirement for a primary key?
A) It can be null
B) It must be unique for each row
C) It can be composite or simple
D) It can be derived from other attributes

B) It must be unique for each row (Correct Answer)

91
New cards

21. What is referential integrity?
A) Ensuring that foreign key values match primary key values in related tables
B) Maintaining unique values in a primary key
C) Preventing null values in any attribute
D) Ensuring that all attributes have data

A) Ensuring that foreign key values match primary key values in related tables (Correct Answer)

92
New cards

22. Which normalization form addresses partial dependencies on a primary key?
A) First Normal Form (1NF)
B) Second Normal Form (2NF)
C) Third Normal Form (3NF)
D) Fourth Normal Form (4NF)

B) Second Normal Form (2NF) (Correct Answer)

93
New cards

23. What is a transitive dependency in the context of normalization?
A) A functional dependency where the primary key is a determinant for another attribute, which in turn is a determinant for a third attribute
B) A dependency between non-key attributes
C) A dependency involving only composite attributes
D) A dependency that affects only multivalued attributes

A) A functional dependency where the primary key is a determinant for another attribute, which in turn is a determinant for a third attribute (Correct Answer)

94
New cards

24. What type of attribute is "Age" in a database?
A) Composite attribute
B) Multivalued attribute
C) Single-valued attribute
D) Derived attribute

C) Single-valued attribute (Correct Answer)

95
New cards

25. What does the term "relation" refer to in a relational database?
A) A relationship between two entities
B) A named, two-dimensional table of data
C) A type of attribute
D) An operation used to query data

B) A named, two-dimensional table of data (Correct Answer)

96
New cards

26. Which of the following is true about foreign keys?
A) They uniquely identify each row in a table.
B) They are used to refer to primary keys in related tables.
C) They cannot be null.
D) They must be composite attributes.

B) They are used to refer to primary keys in related tables. (Correct Answer)

97
New cards

27. What is the primary goal of normalization?
A) To enhance data redundancy
B) To create complex relationships
C) To avoid data anomalies and reduce redundancy
D) To simplify data types

C) To avoid data anomalies and reduce redundancy (Correct Answer)

98
New cards

28. What does a simple attribute refer to?
A) An attribute with multiple component parts
B) An attribute with a single, indivisible value
C) An attribute that can be decomposed into smaller attributes
D) An attribute that holds derived data

B) An attribute with a single, indivisible value (Correct Answer)

99
New cards

29. What type of key is used to enforce uniqueness within a table?
A) Foreign key
B) Composite key
C) Primary key
D) Secondary key

C) Primary key (Correct Answer)

100
New cards

30. What does the term "domain constraint" refer to?
A) Restrictions on the range of values for an attribute
B) Constraints related to the physical storage of data
C) Constraints ensuring foreign key relationships
D) Constraints on data retrieval performance

A) Restrictions on the range of values for an attribute (Correct Answer)