SQL for Beginners glossary
26 terms you will meet in the free SQL for Beginners course, each explained in one or two sentences.
A
- Aggregate function
- A function such as COUNT, SUM or AVG that combines many rows into one value.
- Alias
- A temporary name for a column or table in a query, given with AS.
C
- Clause
- A part of a SQL statement that starts with a keyword, such as WHERE or ORDER BY.
- Column
- A named field with a data type that every row in a table has, such as price or email.
- Constraint
- A rule enforced by the database on a column or table, such as NOT NULL, UNIQUE or a foreign key.
- CTE
- Common table expression: a named temporary result defined with WITH at the start of a query.
D
- Data type
- The kind of value a column holds, such as INTEGER, DECIMAL, VARCHAR text or DATE.
- Database
- An organized collection of data stored so it can be easily searched and updated.
- DBMS
- Database management system: the software, such as PostgreSQL or MySQL, that stores data and runs queries.
F
- Foreign key
- A column that refers to the primary key of another table, linking related rows.
G
- GROUP BY
- A clause that collects rows with the same values into groups so aggregates are calculated per group.
H
- HAVING
- A clause that filters groups after aggregation.
I
- Index
- A data structure that speeds up finding rows by the values of certain columns.
- INNER JOIN
- A join that returns only rows with a match in both tables.
J
- JOIN
- An operation that combines rows from two tables based on a related column.
L
- LEFT JOIN
- A join that returns all rows from the left table, with NULLs where the right table has no match.
N
- Normalization
- Organizing tables to reduce duplicated data, typically by splitting repeated information into related tables.
- NULL
- A marker meaning a value is missing or unknown; it is not zero or an empty string.
P
- Primary key
- A column, or set of columns, whose value uniquely identifies each row in a table.
Q
- Query
- A request for data, usually written as a SELECT statement.
R
- Relational database
- A database that stores data in tables that can be linked to each other through key columns.
- Row
- One record in a table, such as one customer or one order.
S
- SQL
- Structured Query Language, the standard language for querying and changing relational databases.
- Subquery
- A query nested inside another query.
T
- Table
- A set of rows that share the same columns, each table usually describing one kind of thing.
- Transaction
- A group of statements that succeed or fail together, ended with COMMIT or undone with ROLLBACK.
Put these terms to work
The SQL for Beginners course uses every one of these terms in short lessons with instant-feedback questions. It takes about 130 minutes and ends with a free certificate of completion.
Start the course Course overview