Databases Lecture Notes Flashcards - W7

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

1/24

flashcard set

Earn XP

Description and Tags

Flashcards based on lecture notes covering database normalization, SQL, and related concepts.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

Normalization

A table design technique aimed at minimizing data redundancies, focusing on the characteristics of specific entities.

2
New cards

1NF, 2NF, and 3NF

First three normal forms, most commonly used in normalization.

3
New cards

Iterative ER process

The best practice when performing normalization to define all entities and their attributes so that all equivalent tables are in 3NF.

4
New cards

Data Redundancy

A situation in a database where data is unnecessarily repeated, leading to potential inconsistencies and inefficiencies.

5
New cards

Data Anomalies

An undesirable situation in a database where inconsistencies arise during insertion, deletion, or update operations due to data redundancy.

6
New cards

Primary Key

To fulfill 1NF, eliminate repeating groups and identify the .

7
New cards

2NF

Remove partial dependency to meet this normal form.

8
New cards

3NF

Remove tranistive dependency to meet this normal form.

9
New cards

Composite (Bridge) Entity

A table that is used to capture the relationship between two tables after a split, especially in many-to-many relationships.

10
New cards

Boyce-Codd Normal Form (BCNF)

A special case of 3NF, to cover some specific aspects and problems with 3NF, also known as 3.5NF.

11
New cards

candidate key

BCNF can be violated only when the table contains more than one .

12
New cards

determinant

If a table is in BCNF, every in all dependencies must be a complete CK.

13
New cards

Denormalization

The process of adding redundancy back into a normalized database to improve performance.

14
New cards

CREATE

SQL command used to create new tables, indexes, or database structures.

15
New cards

ALTER

SQL command used to modify existing database structures.

16
New cards

DROP

SQL command used to remove tables, indexes, or other database objects permanently.

17
New cards

INSERT

SQL command used to add new rows of data to a table.

18
New cards

DELETE

SQL command used to remove existing rows from a table.

19
New cards

UPDATE

SQL command used to modify existing data within a table.

20
New cards

SELECT

SQL command used to retrieve data from one or more tables

21
New cards

COMMIT

SQL command used to saves all changes made during the current transaction to the database.

22
New cards

ROLLBACK

SQL command used to revert changes made in the current transaction if an error occurs.

23
New cards

SAVEPOINT

SQL command used to creates a temporary save point within a transaction, allowing partial rollbacks.

24
New cards

GROUP BY

SQL clause used to group rows with the same values in one or more columns into a summary row.

25
New cards

HAVING

SQL clause used to filter the results of a GROUP BY query based on a specified condition.