Database Management Systems Exam Review Flashcards

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

1/45

flashcard set

Earn XP

Description and Tags

Flashcards for reviewing key concepts in database management systems, including data modeling, normalization, SQL, and database design.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

46 Terms

1
New cards

Entity

Things in reality we want to keep data about.

2
New cards

Attribute

A distinct characteristic or property of an entity for which we want to keep data.

3
New cards

Relationship

Logical links between entities.

4
New cards

Candidate Key

Any set of attributes that could be chosen as a key of an entity.

5
New cards

Primary Key

The candidate key designated for principle use in uniquely identifying instances of an entity.

6
New cards

Alternate Key

A candidate key that was not designated as the primary key.

7
New cards

Surrogate Key

An artificial attribute that is added to an entity to serve as the primary key.

8
New cards

Composite Key

A primary key consisting of more than one attribute.

9
New cards

Foreign Key

An attribute in one entity that constitutes a key in some other (or possibly the same) entity, used to indicate logical links between entities.

10
New cards

Relationship Cardinality

The number of instances of one entity related to a single instance of another entity. includes the minimum and maximum number of entity instances that must participate in a relationship instance.

11
New cards

Minimum Cardinality

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

12
New cards

Maximum Cardinality

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

13
New cards

Strong entity

Exists independently of other types of entities, has its own unique identifier (key).

14
New cards

Weak entity

Dependent on a strong entity (identifying owner), cannot exist on its own, does not have a unique identifier (only a partial identifier).

15
New cards

Identifying relationship

Links strong entities to weak entities.

16
New cards

Functional Dependency

The value of one or more attributes in a row determines the value of another attribute in the row.

17
New cards

Normalization

Data redundancy and data integrity issues can be solved using this process.

18
New cards

Creation/ Insertion Anomaly

Inability to add data to the database due to absence of other data.

19
New cards

Update Anomaly

Data inconsistency resulting from data redundancy and partial update.

20
New cards

Deletion Anomaly

Unintended loss of data due to deletion of other data.

21
New cards

Second Normal Form (2NF)

A relation is in this normal form if and only if it is in 1NF and all non-key attributes are determined by the entire primary key.

22
New cards

Third Normal Form (3NF)

A relation is in this normal form if and only if it is in 2NF and there are no non-key attributes determined (functionally dependent) by another non-key attribute.

23
New cards

Conceptual Model

Establish the entities, their attributes, and their relationships.

24
New cards

Logical Data Model

Defines the structure of the data elements (e.g. columns) and set the relationships between them.

25
New cards

Physical Data Model

Describes the database-specific implementation of the data model.

26
New cards

Data Type

A type of allowed data for each column.

27
New cards

Default value

Assumed certain value(s) if no explicit value.

28
New cards

Range control

Allowable value range/limitations.

29
New cards

Referential integrity

Enforcing relationships and their cardinality constraints via foreign-key to primary- key match-ups.

30
New cards

Data manipulation language (DML)

Used for querying, inserting, modifying, and deleting data.

31
New cards

Data definition language (DDL)

Used for creating tables, relationships, and other structures.

32
New cards

Keyword

A reserved word that is part of the SQL language.

33
New cards

SELECT clause

Specifies which columns are to be listed in the query results.

34
New cards

FROM clause

Specifies which tables are to be used in the query.

35
New cards

WHERE clause

Specifies (conditions/ filters) which rows are to be listed in the query results.

36
New cards

Operator

A reserved keyword or character used in a WHERE clause to perform an operation, such as comparisons or arithmetic operation.

37
New cards

Wildcards

A wildcard character is used to substitute one or more characters in a string. % matches any number of occurrences of any character. _ matches just a single character.

38
New cards

Functions in SQL

Operations that are performed on data; they Facilitate the manipulation or conversion of data.

39
New cards

Aliases

Used to name calculated fields; use the AS keyword.

40
New cards

Aggregate Functions in SQL

Operate on a set of rows to calculate and return a single value.

41
New cards

GROUP BY clause

Lets you divide data into logical sets so that you can perform aggregate calculations on each group.

42
New cards

WHERE clause

Filters before data is grouped.

43
New cards

HAVING clause

Filters after data is grouped.

44
New cards

Subquery

A query nested within another query, always enclosed in parenthesis ().

45
New cards

SQL JOIN clause

Combines rows from two or more tables.

46
New cards

Views

Creates virtual tables (via queries) on-the-fly that dynamically retrieve data when needed.