SQL Glossary
Every term this course defines, in one alphabetical list, with a one-line meaning and the lesson that explains it. Use your browser's find (Ctrl+F or Cmd+F) to jump to a term, or browse by letter.
A
| Term | Meaning | Lesson |
|---|---|---|
| ACID | Atomicity, consistency, isolation, durability: the guarantees of a transaction | ACID |
| Aggregate function | A function that summarizes many rows into one value, such as sum or count | Aggregate Functions |
| Alias | A temporary name for a column or table in a query | Aliases |
| Anti-join | A query that keeps rows with no match in another table | EXISTS |
| Autocommit | Each statement committed on its own unless a transaction is open | Transactions |
B
| Term | Meaning | Lesson |
|---|---|---|
| B-tree | The default index structure: a sorted tree that finds values quickly | Indexes |
| Backup | A copy of a database you can restore from | Backup and Restore |
C
| Term | Meaning | Lesson |
|---|---|---|
| Cardinality | How many rows on each side of a relationship (one-to-many); also the number of distinct values | Relationships |
| Cartesian product | Every row paired with every row; what a CROSS JOIN returns | CROSS JOIN |
| Check constraint | A rule every row must satisfy | Constraints |
| Collation | The rules for sorting and comparing text | ORDER BY |
| Column | One attribute of a table, with a name and type | Tables, Rows and Columns |
| Column store | Storage that keeps each column together; fast for analytics | SQL for Analytics |
| Common table expression (CTE) | A named subquery written with WITH | Common Table Expressions |
| Composite key | A key made of more than one column | UNIQUE and PRIMARY KEY |
| Connection pool | A set of open connections reused by many requests | Replication and Scaling |
| Constraint | A rule the database enforces on data | Constraints |
| Correlated subquery | A subquery that refers to the outer query | Correlated Subqueries |
| Cursor | A pointer for reading a result set a few rows at a time | Variables, Control Flow and Errors |
D
| Term | Meaning | Lesson |
|---|---|---|
| Data type | The kind of value a column holds | SQL Data Types |
| Database | An organized collection of data managed by a DBMS | What Is a Database |
| DBMS | Database management system: the software that runs a database | What Is a Database |
| DDL | Data definition language: CREATE, ALTER, DROP | What Is SQL |
| Deadlock | Two transactions each waiting for a lock the other holds | Locks and Deadlocks |
| Denormalization | Storing a fact more than once on purpose, to speed up reads | Denormalization |
| Dialect | A database's version of SQL, with its extensions | The SQL Standard and Dialects |
| Dimension table | In a star schema, a table describing who, what or when | SQL for Analytics |
| DML | Data manipulation language: SELECT, INSERT, UPDATE, DELETE | What Is SQL |
E
| Term | Meaning | Lesson |
|---|---|---|
| Entity | A thing the database stores facts about, usually a table | Data Modeling |
| ETL | Extract, transform, load: moving data into an analytics store | SQL for Analytics |
| Execution plan | The steps the database chooses to run a query | Reading EXPLAIN |
F
| Term | Meaning | Lesson |
|---|---|---|
| Fact table | In a star schema, the table of events with measures | SQL for Analytics |
| Failover | Promoting a replica when the primary fails | Replication and Scaling |
| Foreign key | A column that must match a key in another table | FOREIGN KEY |
G
| Term | Meaning | Lesson |
|---|---|---|
| Generated column | A column computed from other columns | Generated Columns and Domains |
I
| Term | Meaning | Lesson |
|---|---|---|
| Identity column | A column the database numbers automatically | Auto-Increment and Identity |
| Index | A structure that finds rows by column values quickly | Indexes |
| Isolation level | How much concurrent transactions can see of each other | Isolation Levels |
J
| Term | Meaning | Lesson |
|---|---|---|
| Join | Combining rows from tables by a condition | How Joins Work |
| JSONB | PostgreSQL's binary JSON type | JSON in SQL |
K
| Term | Meaning | Lesson |
|---|---|---|
| Keyset pagination | Paging by continuing after the last key seen | Pagination |
L
| Term | Meaning | Lesson |
|---|---|---|
| Lock | A claim on a row or table that makes others wait | Locks and Deadlocks |
M
| Term | Meaning | Lesson |
|---|---|---|
| Materialized view | A view whose result is stored until refreshed | Views |
| Migration | A versioned script that changes the schema | Schema Migrations |
| MVCC | Multi-version concurrency control: readers see snapshots while writers create new versions | MVCC |
N
| Term | Meaning | Lesson |
|---|---|---|
| N+1 problem | One query for a list, then one per item | ORMs and Query Builders |
| Normalization | Organizing tables so each fact is stored once | Normalization |
| NULL | A missing or unknown value | NULL Values |
O
| Term | Meaning | Lesson |
|---|---|---|
| OLAP | Analytical processing: big queries that summarize data | SQL for Analytics |
| OLTP | Transaction processing: many small reads and writes | SQL for Analytics |
| ORM | Object-relational mapper: maps rows to objects in code | ORMs and Query Builders |
P
| Term | Meaning | Lesson |
|---|---|---|
| Parameter | A placeholder for a value sent separately from the SQL | Parameters and Prepared Statements |
| Partition | A piece of a partitioned table | Partitioning |
| Primary key | The column(s) that uniquely identify each row | UNIQUE and PRIMARY KEY |
| Privilege | Permission to do something, such as SELECT on a table | Users, Roles and Privileges |
Q
| Term | Meaning | Lesson |
|---|---|---|
| Query | A request to the database, usually a SELECT | Your First Query |
R
| Term | Meaning | Lesson |
|---|---|---|
| Recursive CTE | A CTE that refers to itself, for trees and sequences | Recursive CTEs |
| Referential integrity | Every foreign key points to a row that exists | FOREIGN KEY |
| Relation | The formal name for a table | Tables, Rows and Columns |
| Replica | A read-only copy that follows the primary | Replication and Scaling |
| Role | A user or group that owns privileges | Users, Roles and Privileges |
| Row | One record in a table | Tables, Rows and Columns |
| Row-level security | Policies that limit which rows each user sees | Row-Level Security |
S
| Term | Meaning | Lesson |
|---|---|---|
| Savepoint | A point inside a transaction you can roll back to | Transactions |
| Schema | The structure of a database; also a namespace for tables | Creating a Database |
| Self join | Joining a table to itself | Self Join |
| Sequence | An object that hands out increasing numbers | Auto-Increment and Identity |
| Sharding | Splitting data across several servers | Replication and Scaling |
| SQL injection | An attack that changes a query through unsafe input | SQL Injection |
| Star schema | A fact table surrounded by dimension tables | SQL for Analytics |
| Stored procedure | A routine stored in the database and run with CALL | Stored Procedures |
| Subquery | A query inside another query | Subqueries |
| Surrogate key | A generated id with no business meaning | Choosing Keys |
T
| Term | Meaning | Lesson |
|---|---|---|
| Table | Rows and columns holding one kind of thing | Tables, Rows and Columns |
| Transaction | A group of statements that succeed or fail together | Transactions |
| Trigger | Code that runs automatically when rows change | Triggers |
| Tuple | The formal name for a row | Tables, Rows and Columns |
U
| Term | Meaning | Lesson |
|---|---|---|
| Upsert | Insert a row, or update it if the key exists | Upsert and MERGE |
V
| Term | Meaning | Lesson |
|---|---|---|
| VACUUM | PostgreSQL maintenance that cleans up dead row versions | MVCC |
| View | A saved query you select from like a table | Views |
W
| Term | Meaning | Lesson |
|---|---|---|
| WAL | Write-ahead log: changes recorded before data files, for crash safety and replication | Transactions |
| Window function | A function computed over related rows that keeps every row | Window Functions |
Was this tutorial helpful?