Data and Knowledge Management (all 3 slideshows)

0.0(0)
studied byStudied by 6 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/48

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.

49 Terms

1
New cards

Data degradation

the gradual deterioration of data quality over time

2
New cards

What is a Database Management System (DBMS)?

A set of programs that provides users with tools to create and manage databases

3
New cards

What is a Relational Database?

A database that organizes data into tables, using primary and foreign keys to represent relationships between entities.

4
New cards

What is an Entity-Relationship Diagram (ERD)?

A conceptual diagram that visually represents the structure of a database, showing how entities (tables) relate to each other.

5
New cards

What is the Minimal Data Rule in database design?

  • "All that is needed is there, and all that is there is needed."

  • Ensures only necessary data is included.

6
New cards

What is an Entity in an ERD? and what does it look like?

A thing, event, or person in an organization's environment about which data is collected

<p>A thing, event, or person in an organization's environment about which data is collected</p>
7
New cards

What is an Attribute in an ERD? and what does it look like?

A characteristic or property of an entity (e.g., Student ID, Name, GPA).

<p></p><p>A characteristic or property of an entity (e.g., Student ID, Name, GPA).</p>
8
New cards

What is a Relationship in an ERD? and what does it look like?

An association between entities (e.g., A Student enrolls in a Course).

<p></p><p>An association between entities (e.g., A Student&nbsp;<strong>enrolls in</strong>&nbsp;a Course).</p>
9
New cards

What is a Composite Entity (Associative Entity)? and what does it look like?

An entity that represents both an entity and a relationship, with its own properties (e.g., OrderLine connecting Orders and Products).

<p>An entity that represents both an entity and a relationship, with its own properties (e.g., OrderLine connecting Orders and Products).</p>
10
New cards

what are keys?

(identifiers)

columns that can be used to identify a row

11
New cards

What is a Primary Key?

  • A unique identifier for each record in a table (e.g., Student ID in a Student table).

  • Represented by underlined attributes in an ERD.

12
New cards

What is a Foreign Key?

  • A non-key attribute in one table that appears as a Primary Key in another table (e.g., Department ID in Employee table).

  • aka cross reference key

13
New cards

What is a Composite Key (Concatenated Key)?

A key made up of two or more attributes to identify a record (e.g., Student ID + Course ID to identify a Grade record).

14
New cards

key characteristics

  • can be simple (a single field) or composite

  • will not change in value

  • not be null

15
New cards

What are Special Types of Attributes in an ERD?

  • Multivalued Attributes → Can hold multiple values for a single entity occurrence

  • Derived Attributes → Not stored in the database but computed from existing attributes (e.g., Age derived from Birth Date).

16
New cards
<p>is this a multivalued or derived attribute</p>

is this a multivalued or derived attribute

multivalued

17
New cards
<p>is this a multivalued or derived attribute </p>

is this a multivalued or derived attribute

derived

18
New cards

How is an entity represented in a database table?

Each entity in an ERD is converted into a table in the database.

19
New cards

What is the difference between "relation" and "relationship" in databases?

  • Relation refers to a table in a relational database.

  • Relationship is the relationship between entities in an

    ERD (cardinality relationships)

20
New cards

How are attributes represented in a relational database?

Each attribute in the ERD is converted into a column in the corresponding database table.

21
New cards

Why is a primary key important?

  • Ensures uniqueness of records.

  • establishes relationships between tables.

  • Helps in indexing and fast data retrieval.

22
New cards

what is a one-to-one (1:1) cardinality relationship?

Each entity in the relationship will have exactly one related entity

23
New cards

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

An entity on one side of the relationship can have many related entities, but an entity on the other side will have a maximum of one related entity

24
New cards

what is a many-to-many (1:M) cardinality relationship?

 Entities on both sides of the relationship can have many related entities on the other side

25
New cards

What does a single vertical line represent in an ERD? (also draw it)

represents one in a relationship.

<p><span>represents&nbsp;</span><strong>one</strong><span>&nbsp;in a relationship.</span></p>
26
New cards

What does a crow’s foot represent in an ERD? (draw it too)

represents many in a relationship

<p>represents <strong>many</strong><span>&nbsp;in a relationship</span></p>
27
New cards

How are mandatory relationships represented in an ERD? (draw it too)

shown using another vertical line (||).

<p>shown using&nbsp;<strong>another vertical line</strong>&nbsp;(||).</p>
28
New cards

How are optional relationships represented in an ERD? (draw it)

using a circle (O)

<p><span>using a&nbsp;</span><strong>circle (O)</strong></p>
29
New cards

what does a mandatory single look like?

knowt flashcard image
30
New cards

what does an optional single look like?

knowt flashcard image
31
New cards

what does a mandatory many look like?

knowt flashcard image
32
New cards

what does an optional many look like?

knowt flashcard image
33
New cards

What is an associative entity?

A special type of entity used to break many-to-many (M:M) relationships into two one-to-many (1:M) relationships.

34
New cards

What is a key rule for relationships connected to an associative entity?

All relationships going into an associative entity should be many (M).

35
New cards

What primary keys does an associative entity include?

the primary keys of the tables it breaks.

36
New cards

Can an associative entity have other attributes besides primary keys?

Yes!

37
New cards

What is an anomaly in database normalization?

anything that deviates from the standard and can cause issues

38
New cards

What are the three types of anomalies in databases?

  1. Insertion Anomaly 

  2. Deletion Anomaly 

  3. Modification Anomaly 

39
New cards

What is an insertion anomaly?

occurs when we cannot add a new attribute to a table unless another attribute is also added.

40
New cards

What is a deletion anomaly?

occurs when deleting one row also removes other necessary data.

41
New cards

Why do anomalies exist in database tables?

Because two different themes are stored in the same relation, leading to redundancy and unnecessary dependencies.

42
New cards

What is normalization in databases?

A process of organizing a relational database to eliminate anomalies, etc.

43
New cards

What is the First Normal Form (1NF)?

A table is in 1NF if:

  1. It contains only atomic values (no multivalued attributes).

  2. There are no repeating groups in the table.

44
New cards

What is an atomic value in 1NF?

a value that cannot be further divided or contain different values

45
New cards

all relations are in 1st NF, T/F

True

46
New cards

What is Second Normal Form (2NF)?

A table is in 2NF if:

  1. It is already in First Normal Form (1NF).

  2. Every non-key attribute is fully functionally dependent on the entire primary key (i.e., no partial dependencies).

47
New cards

What is a partial dependency?

occurs when a non-key attribute depends only on part of a composite primary key, rather than the whole key.

48
New cards

What is Third Normal Form (3NF)?

A table is in 3NF if:

  1. It is already in Second Normal Form (2NF).

  2. It has no transitive dependencies

49
New cards

What is a transitive dependency?

occurs when a non-key attribute depends on another non-key attribute instead of directly depending on the primary key.