Database Concepts Study Guide

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

1/148

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:18 PM on 9/26/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

149 Terms

1
New cards

Entity

Anything (people, places, objects, events, etc.) about which we store information.

2
New cards

Attribute

Properties of the entities in an entity set.

3
New cards

Entity Instance

A single occurrence of an entity.

4
New cards

Entity Set

A collection of similar entities.

5
New cards

Composite Attribute

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

6
New cards

Simple Attribute

An attribute that cannot be subdivided.

7
New cards

Single-valued Attribute

An attribute that can only have a single value.

8
New cards

Derived Attribute

An attribute that is not physically stored within the database and is created by an algorithm.

9
New cards

Multi-valued Attribute

An attribute that can have multiple values.

10
New cards

Relationship

Connections among two or more entity sets.

11
New cards

Cardinality

Refers to the maximum number of times an instance in one entity can be associated with instances in the related entity.

12
New cards

Modality

Refers to the minimum number of times an instance in one entity can be associated with an instance in the related entity.1. Cardinality:The number of occurrences in one entity that are associated with the number of occurrences in another.

13
New cards

One-to-one (1:1) cardinality

A type of cardinality where each occurrence in one entity is associated with only one occurrence in another entity.

14
New cards

One-to-many (1:M) cardinality

A type of cardinality where each occurrence in one entity is associated with multiple occurrences in another entity.

15
New cards

Many-to-many (M:N) cardinality

A type of cardinality where multiple occurrences in one entity are associated with multiple occurrences in another entity.

16
New cards

Identifier

Attributes that uniquely identify entity instances.

17
New cards

Composite identifiers

Identifiers that consist of two or more attributes.

18
New cards

Underlined attribute

How identifiers are depicted in a diagram, with the attribute name being underlined.

19
New cards

Crow's Foot Notation

A notation used in ER diagrams, also known as IE notation.

20
New cards

Entity

What is represented by a rectangle with its name on the top in an ER diagram.

21
New cards

Mandatory-One

In Crow's Foot Notation, two lines represent this type of cardinality.

22
New cards

Mandatory-Many

In Crow's Foot Notation, a line and a crow's foot represent this type of cardinality.

23
New cards

Optional-One

In Crow's Foot Notation, a circle and a line represent this type of cardinality.

24
New cards

Optional-Many

In Crow's Foot Notation, a circle and a crow's foot represent this type of cardinality.

25
New cards

Business Rules

Used to define entities, attributes, relationships, and constraints.

26
New cards

Bi-directional

Finalized business rules must be this, meaning they apply in both directions.

27
New cards

Degree Constraint

A constraint that attaches bounding limits to the edges connecting a relationship to an entity set.

28
New cards

Entity

A real-world object, concept, or thing that can be uniquely identified and about which data needs to be stored.

29
New cards

Attributes

Properties or characteristics that describe entities.

30
New cards

Relationships

Show how entities are connected or related to each other in ER models.

31
New cards

Composite Attributes

Attributes that can be divided into further parts.

32
New cards

Simple Attributes

Attributes that cannot be divided further.

33
New cards

Single-valued attributes

Have a single value for each instance of a particular entity.

34
New cards

Multi-valued attributes

Can have a set of values for a particular entity.1. Key Attributes:Attributes within an entity that uniquely identify each instance (or row) of that entity.

35
New cards

Primary Key

A specific type of key attribute that must be unique, non-null, and stable.

36
New cards

Data Uniqueness

Primary keys ensure that each record in the database is distinct, preventing duplicate data.

37
New cards

Data Retrieval

Primary keys are used to retrieve specific records efficiently.

38
New cards

Data Integrity

Primary keys help maintain data integrity by ensuring uniqueness and stability.

39
New cards

Cardinality

The "how many" part of a relationship, defining the minimum and maximum limits for connections between entities.

40
New cards

Multiplicity

The "exact count" part of the relationship, indicating the exact number or range of instances for connections between entities.

41
New cards

Cardinality (in database terminology)

The number of unique values in a specific column or attribute of a database table.

42
New cards

Multiplicity (in database terminology)

Describes the relationship between entities in a database schema, indicating how many instances of one entity can be associated with another entity.

43
New cards

Data

Collection of facts, can be in the form of words, numbers, or pictures.

44
New cards

Database

A collection of data managed by a DBMS, serving as a repository of data.

45
New cards

DBMS

Database Management System, a software tool for managing data in a database.

46
New cards

RDBMS

Relational Database Management System, a DBMS used in relational databases.

47
New cards

File System

Supports schema for data but is limited to creating directory structures for files and does not directly support a query language for data in files.

48
New cards

DDL

Data Definition Language, allows schema altering commands.

49
New cards

DML

Data Manipulation Language, impacts the data but not the schema, used for queries and modifying data.

50
New cards

Conventional users and application programs

Users and programs that interact with the database using commands that change the content of the database without affecting the schema.1. Query compiler:Analyzes and optimizes a query before passing it to the Execution Engine.

51
New cards

Execution Engine

Issues requests for small pieces of data to a Resource Manager and interacts with other components of the DBMS.

52
New cards

Resource Manager (DBA)

Manages data files and index files, helping to find elements of data files quickly.

53
New cards

Buffer Manager

Brings required data from secondary storage to main-memory buffers.

54
New cards

Storage Manager

Controls the placement of data on disk and its movement between disk and main memory.

55
New cards

Query Processing

The process of translating a query into a query plan and executing the steps in the plan.

56
New cards

Query Plan

An internal form of a query represented as a sequence of operations to be performed on the data.

57
New cards

Execution Engine

Responsible for executing each step in the chosen query plan and interacting with other components of the DBMS.

58
New cards

Storage Manager

Controls the placement of data on disk and obtains blocks containing a file from the buffer manager.

59
New cards

Buffer Manager

Responsible for partitioning main memory into buffers and transferring disk blocks into these buffers.

60
New cards

Transaction Processor

Divided into logging and recovery manager and concurrency-control manager/scheduler.

61
New cards

Atomicity

The property of a transaction where multiple operations are grouped into a single logical entity and must be executed in isolation from one another.

62
New cards

ACID Properties of Transactions

Atomicity, Consistency, Isolation, Durability.

63
New cards

Consistency

The property of transactions preserving the consistency of the database by adhering to consistency constraints.

64
New cards

Isolation

The property of transactions appearing to be executed as if no other transaction is executing at the same time.

65
New cards

Durability

The property of transactions ensuring that the effect on the database is never lost once the transaction has completed.

66
New cards

SQL Join

A statement used to combine data or rows from two or more tables based on a common field between them.

67
New cards

INNER JOIN

A join that selects all rows from both tables as long as the condition is satisfied.

68
New cards

LEFT JOIN

A join that returns all rows from the table on the left side and matches rows from the table on the right side, with null values for unmatched rows.

69
New cards

LEFT JOIN (also known as LEFT OUTER JOIN)

An alternative name for the LEFT JOIN operation.1. RIGHT JOIN:A join that returns all the rows of the table on the right side of the join and matching rows for the table on the left side of the join. For the rows with no matching row on the left side, the result-set will contain null.

70
New cards

RIGHT OUTER JOIN

Another term for RIGHT JOIN.

71
New cards

Inner Join

A join that returns the combined tuple between two or more tables based on the common attributes.

72
New cards

Outer Join

A join that returns the combined tuple from a table even if the join condition fails.

73
New cards

LEFT OUTER JOIN

A clause used with Outer Join to return all the rows from the table on the left side of the join and matching rows for the table on the right side.

74
New cards

RIGHT OUTER JOIN

A clause used with Outer Join to return all the rows from the table on the right side of the join and matching rows for the table on the left side.

75
New cards

FULL OUTER JOIN

A join that creates the result-set by combining the results of both LEFT JOIN and RIGHT JOIN. The result-set will contain all the rows from both tables.

76
New cards

NATURAL JOIN

A join that joins tables based on the common columns in the tables being joined. It returns all rows by matching values in common columns with the same name and data type.

77
New cards

CROSS JOIN

A join where two tables are joined without any specific condition.

78
New cards

Data Model

A notation for describing the data or information, including the structure of data, operations on the data, and constraints on the data.

79
New cards

Structure of data

The way data is organized, such as using physical data models like arrays and structures in programming languages.

80
New cards

Operations on the data

Actions that can be performed on the data, typically in programming languages.

81
New cards

Constraints on the data

Limitations on what the data can be and their potential limits.

82
New cards

Relational Model

A data model based on tables or relations, where operations are performed on the tables.

83
New cards

Semi-Structured Data Model

A data model for data that resembles trees or graphs, rather than tables or arrays.

84
New cards

Object-relational model

A model where values can have structure, rather than elementary types like integers or strings.

85
New cards

Relation

A single way to represent data in a 2-D table, where each row represents a record and each column represents a property of the record.

86
New cards

Attributes

The columns of a relation, named by attributes, which describe the meaning of entries in the column.

87
New cards

Schema

The set of schemas for the relations of a database, which defines the structure of the relations.

88
New cards

Tuples

The rows of a relation, containing the components for each attribute of the relation.

89
New cards

Domains

The elementary types required for each component of each tuple in the relational model.

90
New cards

Equivalent Representations of a Relation

The ability to list the tuples in any order or reorder the attributes without changing the relation.

91
New cards

Set

An unordered collection of distinct elements of the same type.

92
New cards

Relations in SQL

Stored relations, views, and temporary tables in SQL, which can be modified or constructed when needed.1. Relations:A set of tables in a relational database.

93
New cards

Relational Database

A database that organizes data into tables or relations.

94
New cards

Relation

A mathematical term for a table in a relational database.

95
New cards

Relational Schema

Specifies the name of a relation and the name and data types of each column or attribute.

96
New cards

Relational Instance

The set of tuples (rows) of a relation at a particular instance of time.

97
New cards

Domain

Represents the set of atomic values that an attribute can take.

98
New cards

Tuples

Rows in a relation that have no order and represent records or data entries.

99
New cards

Cardinality

The number of tuples (rows) in a relation.

100
New cards

Default Values

The value that appears in a column if no other value is known or specified.