Introduction to databases and persistence

The Relational Model

SQL Basics, DDL, and DML

Querying Data

Advanced Concepts

Sqlite

Glossary of Database Terms

Practice

Assignment

Core program

This glossary explains the technical words used in this course. Click on a term to jump to its definition.

A

ACID

A set of 4 rules (Atomicity, Consistency, Isolation, Durability) that guarantee database transactions are processed reliably.

Aggregation

The process of gathering data and summarizing it. For example, calculating the average age of all students or counting how many users are in a system.

Atomicity

The rule that a transaction must happen completely or not at all. It cannot be half-finished.

C

Client

The software or program that asks for data. In this course, the sqlite3 command line tool is the client. Your JavaScript code can also be a client.

Column

A vertical list in a table that holds a specific type of data (like first_name or age). Also called a Field or Attribute.

Constraint

A rule applied to a column to ensure data quality. For example, "this email must be unique" or "this age cannot be empty".

CRUD

Short for Create, Read, Update, Delete. These are the four basic operations you can perform on data.

D

Database (DB)

An organized collection of data stored electronically.

DDL (Data Definition Language)

SQL commands used to define the structure of the database, like CREATE TABLE or DROP TABLE.

DML (Data Manipulation Language)

SQL commands used to manage the data inside the tables, like INSERT, UPDATE, and SELECT.

Durability

The guarantee that once data is saved (committed), it stays saved, even if the power goes out.

F

Field

See Column (above).

Foreign Key (FK)

A column in one table that links to the Primary Key of another table. It creates a relationship between the two tables.

I

Index

A special data structure (like a book's index) that helps the database find rows quickly without looking through the whole table.

Integrity

Refers to the accuracy and consistency of data. "Relational Integrity" means that links between tables (like Foreign Keys) are valid.

J

Join

An SQL operation that combines rows from two or more tables based on a related column between them.

N

Normalization

The process of organizing data to reduce repetition (duplication). This usually involves breaking big tables into smaller, related tables.

P

Persistence / Persistence Layer

The ability of data to survive after the program that created it stops running. The "Persistence Layer" is the part of your code that handles saving and loading data.

Primary Key (PK)

A unique identifier for a specific row in a table. No two rows can have the same Primary Key.

Q

Query

A request for information from a database.

R

RDBMS

Relational Database Management System. Software that manages relational databases (e.g., SQLite, PostgreSQL).

Record

See Row (above).

Relation

Another formal name for a Table (see below).

Row

A horizontal line in a table that represents a single item (like one student). Also called a Record or Tuple.

S

Schema

The blueprint or structure of the database. It defines the tables, the columns in each table, and the relationships between them.

Server

A program that runs in the background and listens for requests from a Client (see above).

SQL (Structured Query Language)

The standard programming language used to communicate with relational databases.

T

Table

A collection of related data held in a table format within a database. It consists of columns and rows. Also called a Relation.

Transaction

A group of SQL commands that are treated as a single unit. Either all of them succeed, or none of them do.

Tuple

See Row (above).

V

View

A virtual table based on the result of a specific query. It does not store data itself but saves the query structure for easy reuse.


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

CC BY-NC-SA 4.0 Icons

*https://hackyourfuture.net/*

Found a mistake or have a suggestion? Let us know in the feedback form.