DataSys+ study materials
DataSys+ study resources

DataSys+ key terms

DataSys+ · Get comfortable with the vocabulary.

Relational database

A database that stores data in tables made of rows and columns and uses relationships between tables. It is queried with languages such as SQL and follows the relational model.

Related: SQL, Primary key, Foreign key
Primary key

A column or set of columns whose values uniquely identify each row in a database table. It cannot contain duplicate or null values.

Related: Foreign key, Relational database
Foreign key

A column or set of columns in one table that refers to the primary key of another table. It enforces referential integrity between related records.

Related: Primary key
SQL

Structured Query Language, a standard language for defining, querying, updating, and managing data in relational databases. It includes statements for creating tables and retrieving rows.

Related: Relational database, Normalization
Normalization

The process of organizing relational database tables to reduce duplicated data and avoid update anomalies. It typically involves dividing data into related tables and defining keys.

Related: Primary key, Foreign key, Relational database
Database index

A data structure that speeds up searches on a database table by providing quick lookup paths to rows. It uses extra storage and must be updated when data changes.

Related: Primary key, SQL
Metadata

Data that describes other data, such as a file's author, creation date, format, or size. In databases, it describes table structures, constraints, and other schema information.

Related: Relational database, Database index
Table

The basic storage structure in a relational database: a named set of rows, each row having the same set of named columns with a defined data type per column. Also called a relation or entity.

Related: Row, Column, Relational database
Row

A single record in a table, holding one value for each column. Also called a tuple or record. Rows are unordered in the relational model; only an ORDER BY clause gives a result a defined sequence.

Related: Table, Column, Primary key
Column

A named attribute of a table that holds one value per row, with a declared data type and optional constraints. Also called a field or attribute. All values in a column share the same type.

Related: Row, Data type, Table
Candidate key

Any minimal set of columns that could serve as the primary key because it uniquely identifies every row. One candidate key is chosen as the primary key; the others are usually enforced as unique constraints.

Related: Primary key, Unique constraint, Functional dependency
Referential integrity

The rule that every non-null foreign key value must correspond to an existing key value in the referenced table. The database rejects inserts, updates and deletes that would break this rule.

Related: Foreign key, Constraint, ON DELETE CASCADE
Unique constraint

A rule that no two rows may hold the same value in the specified column or column combination. Unlike a primary key, a unique constraint usually permits null values and a table may have several of them.

Related: Primary key, Constraint, Candidate key
NOT NULL constraint

A column rule that forbids the absence of a value, so every row must supply a value for that column. It is a column-level check and is implied automatically by a primary key.

Related: NULL, Constraint, Primary key
CHECK constraint

A declared predicate that rejects rows for which the condition evaluates FALSE. UNKNOWN, including many NULL-related results, can pass, so required presence needs a separate NOT NULL constraint.

Related: Constraint, DEFAULT constraint, Data type
DEFAULT constraint

A value the database supplies automatically when an INSERT statement omits the column. It applies only when no value is given; explicitly inserting NULL stores NULL rather than the default.

Related: INSERT statement, NULL, CHECK constraint
NULL

A marker meaning that a value is unknown or not applicable, distinct from zero or an empty string. Comparisons with NULL yield unknown, so tests must use IS NULL or IS NOT NULL.

Related: Three-valued logic, NOT NULL constraint, COALESCE
Three-valued logic

The rule that SQL conditions evaluate to true, false or unknown, with unknown arising whenever NULL takes part in a comparison or arithmetic expression. A WHERE clause keeps only rows whose condition is true.

Related: NULL, WHERE clause, COALESCE
COALESCE

A function returning the first of its arguments that is not null, or null if all are null. Commonly used to substitute a default for missing values in query output.

Related: NULL, CASE expression, Three-valued logic
Data type

The declared category of values a column may hold, such as integer, decimal, character string, date or Boolean. The type determines allowed operations, storage size and which implicit conversions the database permits.

Related: Column, CAST, CHAR versus VARCHAR
CHAR versus VARCHAR

CHAR stores fixed-length strings padded with spaces to the declared length, while VARCHAR stores variable-length strings up to a maximum. CHAR suits uniform codes; VARCHAR suits names and addresses of varying length.

Related: Data type, CAST, TRIM
CAST

An operator or function that converts a value from one data type to another, for example turning a string into a number or a date. It may be explicit in the statement or applied implicitly by the database.

Related: Data type, Implicit conversion, Date function
Implicit conversion

Automatic type conversion the database performs when operands of different types meet in an expression or comparison. It can silently change results or prevent an index from being used, so explicit conversion is safer.

Related: CAST, Data type, Index
CREATE TABLE

The DDL statement that defines a new table by naming it and listing its columns with data types and constraints. Variants can also copy structure from an existing table or create the table only if absent.

Related: ALTER TABLE, DROP TABLE, Constraint
Restore chain

The required consistent set of backup bases, changes, logs, metadata and key access needed to reach the chosen recovery point under the actual DBMS.

Query wait evidence

An observation about where query execution spends time, useful for distinguishing locking, I/O, CPU and other hypotheses under representative workload.

Least Privilege

The principle that users and systems should be granted only the minimum access rights necessary to perform their tasks, reducing the potential damage from accidents or malicious activity.

Related: Role-Based Access Control, Separation of Duties
Separation of Duties

A control that divides critical tasks among different individuals so that no single person can complete a sensitive action alone, helping to prevent fraud and errors.

Related: Least Privilege, Role-Based Access Control
Role-Based Access Control (RBAC)

An access control model where permissions are assigned to roles rather than individual users, and users are assigned to roles based on their job responsibilities.

Related: Least Privilege, Separation of Duties
Multi-Factor Authentication (MFA)

An authentication method that requires two or more independent credentials from different categories (something you know, have, or are) to verify a user's identity.

Related: Authentication, Single Sign-On