Introduction to Database Design: Normalization and SQL Basics

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

1/33

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering normalization concepts, normal forms, dependencies, keys, and core SQL commands from the notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

34 Terms

1
New cards

Normalization

The process of organizing data in a relational database to reduce redundancy and dependency, ensuring each data item is stored in one place and relationships are represented.

2
New cards

Relational database

A database that stores data in tables with defined relationships between them to minimize redundancy and enable efficient queries.

3
New cards

Data redundancy

Duplication of data across multiple places, leading to wasted space and potential inconsistencies.

4
New cards

Data anomalies

Inconsistencies or errors that arise from data redundancy when inserting, updating, or deleting data.

5
New cards

Atomic values

Indivisible values stored in a column; each cell contains a single value.

6
New cards

First Normal Form (1NF)

A form where each column contains atomic values and each row is unique.

7
New cards

Second Normal Form (2NF)

Eliminates partial dependencies by ensuring non-key attributes depend on the entire primary key.

8
New cards

Third Normal Form (3NF)

Removes transitive dependencies by ensuring non-key attributes depend only on the primary key.

9
New cards

Boyce-Codd Normal Form (BCNF)

A stricter version of 3NF that eliminates all non-trivial functional dependencies.

10
New cards

Fourth Normal Form (4NF)

Addresses multi-valued dependencies among attributes.

11
New cards

Fifth Normal Form (5NF)

Addresses join dependencies; handles complex data relationships beyond 4NF.

12
New cards

Partial dependency

A non-key attribute depends on part of a composite primary key.

13
New cards

Transitive dependency

A non-key attribute depends on another non-key attribute rather than directly on the primary key.

14
New cards

Primary key

A unique identifier for each row in a table.

15
New cards

Foreign key

A field that links to the primary key in another table, creating a relationship between tables.

16
New cards

Functional dependency

A relationship where one attribute (or set) determines another attribute.

17
New cards

Data integrity

The accuracy, consistency, and reliability of data over time.

18
New cards

SQL

Structured Query Language used to communicate with and manipulate relational databases.

19
New cards

DDL

Data Definition Language; defines or modifies database structure (e.g., CREATE, ALTER, DROP).

20
New cards

DML

Data Manipulation Language; manipulates data within the database (e.g., SELECT, INSERT, UPDATE, DELETE).

21
New cards

DCL

Data Control Language; controls access to data (e.g., GRANT, REVOKE).

22
New cards

TCL

Transaction Control Language; manages transactions (e.g., COMMIT, ROLLBACK, SAVEPOINT).

23
New cards

CREATE TABLE

DDL command to create a new table with specified columns and constraints.

24
New cards

ALTER TABLE

DDL command to modify an existing table (e.g., add or alter columns).

25
New cards

DROP TABLE

DDL command to delete a table and its data.

26
New cards

SELECT

DML command to query data from one or more tables.

27
New cards

INSERT

DML command to add new rows to a table.

28
New cards

UPDATE

DML command to modify existing data in a table.

29
New cards

DELETE

DML command to remove data from a table.

30
New cards

GRANT

DCL command to give specific permissions to a user or role.

31
New cards

REVOKE

DCL command to remove previously granted permissions.

32
New cards

COMMIT

TCL command to permanently apply all changes in the current transaction.

33
New cards

ROLLBACK

TCL command to undo all changes in the current transaction.

34
New cards

SAVEPOINT

TCL command to set a point within a transaction to which you can roll back.