Glossary

1-to-many relation
A relationship between two tables in which each record from the first table matches zero or more records from the second, but each record from the second table matches exactly one record from the first.
aggregation
Combining several values to produce one.
aggregation function
A function used to produce one value from many, such as maximum or addition.
alias
An alternate name used temporarily for a table or column.
common table expression (CTE)
A temporary table created at the start of a query, usually to simplify writing the query.
database
A collection of data that can be searched and retrieved.
database management system (DBMS)
A program that manages a particular kind of database.
expression
A part of a program that produces a value, such as 1+2.
filter
To select records based on whether they pass some Boolean test.
foreign key
A value in one table that identifies a primary key in another table.
group
A set of records that share a common property, such as having the same value in a particular column.
index
An auxiliary data structure that enables faster access to records.
join
To combine records from two tables.
join table
A table that exists solely to enable information from two tables to be connected.
left outer join
A join that is guaranteed to keep all rows from the first (left) table. Columns from the right table are filled with actual values if available or with null otherwise.
many-to-many relation
A relationship between two tables in which each record from the first table may match zero or more records from the second and vice versa.
NoSQL database
Any database that doesn’t use the relational model.
null
A special value representing “not known”.
primary key
A value or values in a database table that uniquely identifies each record in that table.
query
A command to perform some operation in a database (typically data retrieval).
relational database management system (RDBMS)
A database management system that stores data in tables with columns and rows.
statement
A part of a program that doesn’t produce a value.
subquery
A query used within another query.
table
A collection of related data in a database stored in columns and rows.
temporary table
A table that is explicitly constructed in memory outside any particular query.
ternary logic
A logic based on three values: true, false, and “don’t know” (represented as null).
trigger
An action that runs automatically when something happens in a database, typically insertion or deletion.
view
A rearrangement of data in a database that is regenerated on demand.
window function
A function that combines data from adjacent rows in a database query’s result.