ACID vs BASE
ACID (Atomicity, Consistency, Isolation, Durability) is a set of properties for reliable transaction processing, common in traditional SQL databases. BASE (Basically Available, Soft state, Eventually consistent) is a model for distributed systems that prioritizes availability over strict consistency, common in NoSQL.
attribute (field)
A property or characteristic of an entity. In a relational table, this corresponds to a column.
backup
A copy of data taken and stored elsewhere so that it may be used to restore the original after a data loss event.
Candidate key
An attribute or a set of attributes that can uniquely identify a tuple in a relation. A relation can have multiple candidate keys.
Cartesian product
A relational algebra operation that combines every tuple from one relation with every tuple from another relation.
CRUD operations
The four basic functions of persistent storage: Create, Read, Update, and Delete.
DBMS, rDBMS, oDBMS, gDBMS
DBMS: Database Management System. A software system for creating and managing databases. rDBMS: Relational DBMS. oDBMS: Object-oriented DBMS. gDBMS: Graph-oriented DBMS.
discriminator
An attribute of a weak entity that, combined with the primary key of the owning entity, uniquely identifies a weak entity instance. Also known as a partial key.
entity (E/R diagram)
A real-world object or concept with an independent existence that is to be represented in the database (e.g., a person, a car, a course).
Equijoin
A type of join that combines tuples from two relations where the values of a common attribute are equal. It is a subset of the Cartesian product.
foreign key
An attribute or set of attributes in a relation that refers to the primary key of another (or the same) relation, enforcing referential integrity.
index
A data structure used to improve the speed of data retrieval operations on a database table at the cost of additional writes and storage space.
intersection
A relational algebra operation that returns all tuples that are present in both of two specified relations.
multi-valued attribute
An attribute that can hold multiple values for a single entity instance (e.g., a ‘phone_numbers’ attribute for a person).
natural, cross, equi, outer, inner, left, right joins
Types of join operations. Natural: joins on all common columns. Cross: Cartesian product. Equi: joins on equality. Inner: returns only matching rows. Outer (Left, Right, Full): returns matching rows plus non-matching rows from one or both tables.
natural key
A candidate key that is formed of attributes that exist in the real world and have a logical relationship to the entity, such as a vehicle’s VIN or a person’s social security number.
predicate
The conditional part of a query, typically in the WHERE clause, that specifies the criteria for selecting rows.
Primary Key
A candidate key chosen by the database designer to uniquely identify tuples within a relation. It cannot contain null values.
project, select, groupby
SQL/Relational Algebra operations. Select: retrieves rows (tuples). Project: retrieves columns (attributes). Group By: arranges identical data into groups.
query
A request to a DBMS for retrieving, modifying, inserting, or deleting data.
record
A collection of related data items treated as a single unit. Synonymous with a tuple or a row in a relational database.
Referential Integrity
A property ensuring that a foreign key value must match an existing primary key value in the referenced table or be null.
relational, relation (table)
A relation is a set of tuples (rows), representing data in a two-dimensional table with columns (attributes).
relation - databases, weak relation
A relation that contains a weak entity. It cannot exist on its own and depends on another ‘strong’ relation.